aboutsummaryrefslogtreecommitdiffstats
path: root/block/genhd.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2022-09-21 20:04:58 +0200
committerJens Axboe <axboe@kernel.dk>2022-09-26 19:17:28 -0600
commitcad9266abcef586aa95f6f4095781e3e55473f2a (patch)
tree5021d2e4071d0a70c02d21773100e12fd1dc7d43 /block/genhd.c
parentblk-throttle: pass a gendisk to blk_throtl_register_queue (diff)
downloadlinux-dev-cad9266abcef586aa95f6f4095781e3e55473f2a.tar.xz
linux-dev-cad9266abcef586aa95f6f4095781e3e55473f2a.zip
blk-throttle: pass a gendisk to blk_throtl_cancel_bios
Pass the gendisk to blk_throtl_cancel_bios as part of moving the blk-cgroup infrastructure to be gendisk based. 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/20220921180501.1539876-15-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/genhd.c')
-rw-r--r--block/genhd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/genhd.c b/block/genhd.c
index f1af045fac2f..d6a21803a57e 100644
--- a/block/genhd.c
+++ b/block/genhd.c
@@ -626,7 +626,7 @@ void del_gendisk(struct gendisk *disk)
pm_runtime_set_memalloc_noio(disk_to_dev(disk), false);
device_del(disk_to_dev(disk));
- blk_throtl_cancel_bios(disk->queue);
+ blk_throtl_cancel_bios(disk);
blk_sync_queue(q);
blk_flush_integrity();