mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 03:23:53 -04:00
blk-cgroup: pass a gendisk to blkcg_{de,}activate_policy
Prepare for storing the blkcg information in the gendisk instead of the request_queue. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Andreas Herrmann <aherrmann@suse.de> Acked-by: Tejun Heo <tj@kernel.org> Link: https://lore.kernel.org/r/20230203150400.3199230-17-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
committed by
Jens Axboe
parent
ba91c849fa
commit
40e4996ec0
@@ -1291,7 +1291,7 @@ struct bfq_group *bfq_create_group_hierarchy(struct bfq_data *bfqd, int node)
|
||||
{
|
||||
int ret;
|
||||
|
||||
ret = blkcg_activate_policy(bfqd->queue, &blkcg_policy_bfq);
|
||||
ret = blkcg_activate_policy(bfqd->queue->disk, &blkcg_policy_bfq);
|
||||
if (ret)
|
||||
return NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user