]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
block: Clear zone limits for a non-zoned stacked queue
authorDamien Le Moal <dlemoal@kernel.org>
Thu, 22 Feb 2024 13:17:23 +0000 (22:17 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2024 13:28:20 +0000 (15:28 +0200)
commitfe86d01ce7db878a6bca37bb3aa7d969659da939
treef50b8584ba3b256e94fc3e51beab945c198a7236
parentba191200a1aede0412eb2f669826485fca9274cb
block: Clear zone limits for a non-zoned stacked queue

[ Upstream commit c8f6f88d25929ad2f290b428efcae3b526f3eab0 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
block/blk-settings.c