mirror of
https://github.com/torvalds/linux.git
synced 2026-05-05 15:02:40 -04:00
block: call blk_queue_free_zone_bitmaps from disk_release
The zone bitmaps are only used for non-passthrough I/O, so free them as soon as the disk is released. 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-3-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
committed by
Jens Axboe
parent
f1a8bbd110
commit
6cc37a672a
@@ -1165,6 +1165,7 @@ static void disk_release(struct device *dev)
|
||||
|
||||
disk_release_events(disk);
|
||||
kfree(disk->random);
|
||||
blk_queue_free_zone_bitmaps(disk->queue);
|
||||
xa_destroy(&disk->part_tbl);
|
||||
|
||||
disk->queue->disk = NULL;
|
||||
|
||||
Reference in New Issue
Block a user