On Thu, 10 Nov 2022 10:44:56 -0800, Keith Busch wrote: > From: Keith Busch <kbusch@xxxxxxxxxx> > > The 6.0 kernel made some changes to the direct io interface to allow > offsets in user addresses. This based on the hardware's capabilities > reported in the request_queue's dma_alignment attribute. > > dm-crypt, -log-writes and -integrity require direct io be aligned to the > block size. Since it was only ever using the default 511 dma mask, this > requirement may fail if formatted to something larger, like 4k, which > will result in unexpected behavior with direct-io. > > [...] Applied, thanks! [1/5] block: make dma_alignment a stacking queue_limit commit: c964d62f5cab7b43dd0534f22a96eab386c6ec5d [2/5] dm-crypt: provide dma_alignment limit in io_hints commit: 86e4d3e8d1838ca88fb9267e669c36f6c8f7c6cd [3/5] block: make blk_set_default_limits() private commit: b3228254bb6e91e57f920227f72a1a7d81925d81 [4/5] dm-integrity: set dma_alignment limit in io_hints commit: 29aa778bb66795e6a78b1c99beadc83887827868 [5/5] dm-log-writes: set dma_alignment limit in io_hints commit: 50a893359cd2643ee1afc96eedc9e7084cab49fa Best regards, -- Jens Axboe