summaryrefslogtreecommitdiffstats
path: root/block/blk-zoned.c
diff options
context:
space:
mode:
authorDamien Le Moal <dlemoal@kernel.org>2024-02-22 22:17:23 +0900
committerJens Axboe <axboe@kernel.dk>2024-02-22 10:35:18 -0700
commitc8f6f88d25929ad2f290b428efcae3b526f3eab0 (patch)
tree6f491d828533e4458a61e9c68c5def9c76a2c9b1 /block/blk-zoned.c
parent0f225f87873ee95dd4cf94dfc6a3249d4289e4ea (diff)
downloadlinux-stable-c8f6f88d25929ad2f290b428efcae3b526f3eab0.tar.gz
linux-stable-c8f6f88d25929ad2f290b428efcae3b526f3eab0.tar.bz2
linux-stable-c8f6f88d25929ad2f290b428efcae3b526f3eab0.zip
block: Clear zone limits for a non-zoned stacked queue
Device mapper may create a non-zoned mapped device out of a zoned device (e.g., the dm-zoned target). In such case, some queue limit such as the max_zone_append_sectors and zone_write_granularity endup being non zero values for a block device that is not zoned. Avoid this by clearing these limits in blk_stack_limits() when the stacked zoned limit is false. Fixes: 3093a479727b ("block: inherit the zoned characteristics in blk_stack_limits") Cc: stable@vger.kernel.org Signed-off-by: Damien Le Moal <dlemoal@kernel.org> Link: https://lore.kernel.org/r/20240222131724.1803520-1-dlemoal@kernel.org Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-zoned.c')
0 files changed, 0 insertions, 0 deletions