]> git.baikalelectronics.ru Git - kernel.git/commit
block: simplify disk_set_independent_access_ranges
authorChristoph Hellwig <hch@lst.de>
Wed, 29 Jun 2022 06:20:13 +0000 (08:20 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 29 Jun 2022 14:36:46 +0000 (08:36 -0600)
commit4c93ea92590b5b835eca7c6581c42c0a2387d970
tree104eba45842e179634e33c21b1ed966d515d5763
parent5424453ecd65e736aa7c7a61471608d08fd1fce0
block: simplify disk_set_independent_access_ranges

Lift setting disk->ia_ranges from disk_register_independent_access_ranges
into disk_set_independent_access_ranges, and make the behavior the same
for the registered vs non-registered queue cases.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Tested-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Link: https://lore.kernel.org/r/20220629062013.1331068-3-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-ia-ranges.c
block/blk-sysfs.c
block/blk.h