]> git.baikalelectronics.ru Git - kernel.git/commit
block: call blk_queue_free_zone_bitmaps from disk_release
authorChristoph Hellwig <hch@lst.de>
Wed, 6 Jul 2022 07:03:36 +0000 (09:03 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 6 Jul 2022 12:46:25 +0000 (06:46 -0600)
commit3e16312a52c310e35ebcaac55e030c3c6a466189
treef0cd93f9048cf1ab51732dc02e56625bfdd115d0
parentea483b6c92769eb9587aab3eb4844f9a52ded08f
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>
block/blk-sysfs.c
block/genhd.c