summaryrefslogtreecommitdiff
path: root/block/blk-zoned.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2022-07-06 10:03:41 +0300
committerJens Axboe <axboe@kernel.dk>2022-07-06 15:46:26 +0300
commitb3c72f8138b5f967a9fa527af84b35018897aba3 (patch)
treee8dbfd4d1abefc4b71285ce6c820353bac14bc93 /block/blk-zoned.c
parent6b2bd274744e6454ba7bbbe6a09b44866f2f414a (diff)
downloadlinux-b3c72f8138b5f967a9fa527af84b35018897aba3.tar.xz
block: pass a gendisk to blk_queue_clear_zone_settings
Switch to a gendisk based API in preparation for moving all zone related fields from the request_queue to the gendisk. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com> Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Link: https://lore.kernel.org/r/20220706070350.1703384-8-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-zoned.c')
-rw-r--r--block/blk-zoned.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/block/blk-zoned.c b/block/blk-zoned.c
index 90a5c9cc80ab..82a4fa89678c 100644
--- a/block/blk-zoned.c
+++ b/block/blk-zoned.c
@@ -622,8 +622,10 @@ int blk_revalidate_disk_zones(struct gendisk *disk,
}
EXPORT_SYMBOL_GPL(blk_revalidate_disk_zones);
-void blk_queue_clear_zone_settings(struct request_queue *q)
+void disk_clear_zone_settings(struct gendisk *disk)
{
+ struct request_queue *q = disk->queue;
+
blk_mq_freeze_queue(q);
blk_queue_free_zone_bitmaps(q);