mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -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
@@ -2821,7 +2821,7 @@ static void ioc_rqos_exit(struct rq_qos *rqos)
|
||||
{
|
||||
struct ioc *ioc = rqos_to_ioc(rqos);
|
||||
|
||||
blkcg_deactivate_policy(rqos->disk->queue, &blkcg_policy_iocost);
|
||||
blkcg_deactivate_policy(rqos->disk, &blkcg_policy_iocost);
|
||||
|
||||
spin_lock_irq(&ioc->lock);
|
||||
ioc->running = IOC_STOP;
|
||||
@@ -2893,7 +2893,7 @@ static int blk_iocost_init(struct gendisk *disk)
|
||||
if (ret)
|
||||
goto err_free_ioc;
|
||||
|
||||
ret = blkcg_activate_policy(disk->queue, &blkcg_policy_iocost);
|
||||
ret = blkcg_activate_policy(disk, &blkcg_policy_iocost);
|
||||
if (ret)
|
||||
goto err_del_qos;
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user