block: make dma_alignment a stacking queue_limit
authorKeith Busch <kbusch@kernel.org>
Thu, 10 Nov 2022 18:44:57 +0000 (10:44 -0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 16 Nov 2022 22:58:11 +0000 (15:58 -0700)
commitc964d62f5cab7b43dd0534f22a96eab386c6ec5d
tree5a443eb1b56ce9e0961cf4afa5f2dce93607332e
parenta7a1598189228b5007369a9622ccdf587be0730f
block: make dma_alignment a stacking queue_limit

Device mappers had always been getting the default 511 dma mask, but
the underlying device might have a larger alignment requirement. Since
this value is used to determine alloweable direct-io alignment, this
needs to be a stackable limit.

Signed-off-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20221110184501.2451620-2-kbusch@meta.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
block/blk-settings.c
include/linux/blkdev.h