block: allow device to have both virt_boundary_mask and max segment size
authorMing Lei <ming.lei@redhat.com>
Sun, 7 Apr 2024 13:19:31 +0000 (21:19 +0800)
committerJens Axboe <axboe@kernel.dk>
Sun, 7 Apr 2024 21:50:33 +0000 (15:50 -0600)
commitb561ea56a26415bf44ce8ca6a8e625c7c390f1ea
tree958a8bc619764788de6873d52aa80552efb56c2f
parent8b8ace080319a866f5dfe9da8e665ae51d971c54
block: allow device to have both virt_boundary_mask and max segment size

When one stacking device is over one device with virt_boundary_mask and
another one with max segment size, the stacking device have both limits
set. This way is allowed before d690cb8ae14b ("block: add an API to
atomically update queue limits").

Relax the limit so that we won't break such kind of stacking setting.

Closes: https://bugzilla.kernel.org/show_bug.cgi?id=218687
Reported-by: janpieter.sollie@edpnet.be
Fixes: d690cb8ae14b ("block: add an API to atomically update queue limits")
Link: https://lore.kernel.org/linux-block/ZfGl8HzUpiOxCLm3@fedora/
Cc: Christoph Hellwig <hch@lst.de>
Cc: Mike Snitzer <snitzer@kernel.org>
Cc: dm-devel@lists.linux.dev
Cc: Song Liu <song@kernel.org>
Cc: linux-raid@vger.kernel.org
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Mike Snitzer <snitzer@kernel.org>
Link: https://lore.kernel.org/r/20240407131931.4055231-1-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-settings.c