All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCHv5 0/3] dm-crypt: finer grained memory alignment
@ 2026-07-09 16:15 Keith Busch
  2026-07-09 16:15 ` [PATCHv5 1/3] dm: initialize dma_alignment to 0 Keith Busch
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Keith Busch @ 2026-07-09 16:15 UTC (permalink / raw)
  To: dm-devel, mpatocka; +Cc: snitzer, bmarzins, 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/20260330170114.764606-1-kbusch@meta.com/

Changes from v4:

  * Updated the mempool count to MIN_IOS, as requested.

  * Fixed the issue observed from cryptsetup testsuite. The problem was
    an early return path accessing unitialized fields. The fix just
    initializes them before.

  * I discovered we may be in softirq context when allocating, so
    had to add handling for ENOMEM. But then also noticed existing
    ENOMEM cases were just being generically handled in the default case
    returning EIO, so I introduced a prep patch to make these transient
    resource issues retryable.

Keith Busch (3):
  dm: initialize dma_alignment to 0
  dm-crypt: handle memory allocation failures
  dm-crypt: allow unaligned bio_vecs for direct io

 drivers/md/dm-crypt.c | 183 ++++++++++++++++++++++++++++++++++++------
 drivers/md/dm-table.c |   1 +
 2 files changed, 159 insertions(+), 25 deletions(-)

-- 
2.52.0


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

end of thread, other threads:[~2026-07-13 18:54 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-09 16:15 [PATCHv5 0/3] dm-crypt: finer grained memory alignment Keith Busch
2026-07-09 16:15 ` [PATCHv5 1/3] dm: initialize dma_alignment to 0 Keith Busch
2026-07-09 16:15 ` [PATCHv5 2/3] dm-crypt: handle memory allocation failures Keith Busch
2026-07-09 16:15 ` [PATCHv5 3/3] dm-crypt: allow unaligned bio_vecs for direct io Keith Busch
2026-07-11  0:54   ` Eric Biggers
2026-07-11  4:14     ` Keith Busch
2026-07-11  4:30       ` Eric Biggers
2026-07-13 18:54         ` Keith Busch

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.