diff options
author | Christoph Hellwig <hch@lst.de> | 2022-06-29 09:20:13 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-06-29 17:36:46 +0300 |
commit | 22d0c4080fe49299640d9d6c43154c49794c2825 (patch) | |
tree | 104eba45842e179634e33c21b1ed966d515d5763 /block/blk-sysfs.c | |
parent | 6a27d28c81bc5843de2490688a04ee5baa6615e7 (diff) | |
download | linux-22d0c4080fe49299640d9d6c43154c49794c2825.tar.xz |
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>
Diffstat (limited to 'block/blk-sysfs.c')
-rw-r--r-- | block/blk-sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-sysfs.c b/block/blk-sysfs.c index 85ea43eff094..58cb9cb9f48c 100644 --- a/block/blk-sysfs.c +++ b/block/blk-sysfs.c @@ -832,7 +832,7 @@ int blk_register_queue(struct gendisk *disk) blk_mq_debugfs_register(q); mutex_unlock(&q->debugfs_mutex); - ret = disk_register_independent_access_ranges(disk, NULL); + ret = disk_register_independent_access_ranges(disk); if (ret) goto put_dev; |