public inbox for dm-devel@redhat.com
 help / color / mirror / Atom feed
* [PATCHv4 0/2] dm: finer grained memory alignment
@ 2026-03-30 17:01 Keith Busch
  2026-03-30 17:01 ` [PATCHv4 1/2] dm: initialize dma_alignment to 0 Keith Busch
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Keith Busch @ 2026-03-30 17:01 UTC (permalink / raw)
  To: dm-devel, mpatocka; +Cc: snitzer, Keith Busch

From: Keith Busch <kbusch@kernel.org>

This is the updated series for allowing arbitrary memory alignment,
enabling direct-io without bounce buffers for dm-crypt.

The previous version was posted here:

  https://lore.kernel.org/dm-devel/20260114154954.3282207-2-kbusch@meta.com/

And is based on the current dm-7.1 branch, which has the necessary
dm-integrity updates that make patch 1 a no-op.

Changes from v3:

 * Split off the generic dm-table queue limits update into its own prep
   patch.

 * Squashed the rest into a single patch just so it doesn't introduce a
   temporary commit point where the reported limits can't always be
   executed.

 * Do not report a dma_alignment lower than the backing device's; this
   is necessary as the incoming buffers are used directly for READ
   rather than bounced like WRITE. 

 * Fallback to a mempool if we can't allocate the scatterlist with
   kmalloc and updated gfp_t flags accordingly.

 * Various cleanups.

Keith Busch (2):
  dm: initialize dma_alignment to 0
  dm-crypt: allow unaligned bio_vecs for direct io

 drivers/md/dm-crypt.c | 147 ++++++++++++++++++++++++++++++++++++------
 drivers/md/dm-table.c |   1 +
 2 files changed, 128 insertions(+), 20 deletions(-)

-- 
2.52.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-04-08 18:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-30 17:01 [PATCHv4 0/2] dm: finer grained memory alignment Keith Busch
2026-03-30 17:01 ` [PATCHv4 1/2] dm: initialize dma_alignment to 0 Keith Busch
2026-03-30 17:01 ` [PATCHv4 2/2] dm-crypt: allow unaligned bio_vecs for direct io Keith Busch
2026-03-30 19:54 ` [PATCHv4 0/2] dm: finer grained memory alignment Mikulas Patocka
2026-04-08 16:12   ` Mikulas Patocka
2026-04-08 18:29     ` Keith Busch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox