All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/7] Fix bio splitting by the crypto fallback code
@ 2025-07-15 20:10 Bart Van Assche
  2025-07-15 20:10 ` [PATCH v3 1/7] block: Improve blk_crypto_fallback_split_bio_if_needed() Bart Van Assche
                   ` (8 more replies)
  0 siblings, 9 replies; 21+ messages in thread
From: Bart Van Assche @ 2025-07-15 20:10 UTC (permalink / raw)
  To: Jens Axboe; +Cc: linux-block, Christoph Hellwig, Eric Biggers, Bart Van Assche

Hi Jens,

When using the crypto fallback code, large bios are split twice. A first
time by bio_split_to_limits() and a second time by the crypto fallback
code. This causes bios not to be submitted in LBA error and hence triggers
write errors for zoned block devices. This patch series fixes this by
splitting bios once. Please consider this patch series for the next merge
window.

Thanks,

Bart.

Changes compared to v2:
 - Added a patch that optimizes blk_crypto_max_io_size().
 - Added three patches that change calling conventions in the crypto fallback
   code.
 - Added a patch to remove crypto_bio_split.
 - Moved the blk_crypto_max_io_size() call into get_max_io_size().

Changes compared to v1:
 - Dropped support for bio-based drivers that do not call bio_split_to_limits().
 - Removed the BLK_FEAT_CALLS_BIO_SPLIT_TO_LIMITS and BIO_HAS_BEEN_SPLIT flags.

Bart Van Assche (7):
  block: Improve blk_crypto_fallback_split_bio_if_needed()
  block: Split blk_crypto_fallback_split_bio_if_needed()
  block: Modify the blk_crypto_bio_prep() calling convention
  block: Modify the blk_crypto_fallback_bio_prep() calling convention
  block: Change the blk_crypto_fallback_encrypt_bio() calling convention
  block: Rework splitting of encrypted bios
  block, crypto: Remove crypto_bio_split

 block/blk-core.c            |  3 --
 block/blk-crypto-fallback.c | 85 ++++++++++++++-----------------------
 block/blk-crypto-internal.h | 25 +++++++----
 block/blk-crypto.c          | 26 ++++++------
 block/blk-merge.c           |  9 +++-
 5 files changed, 68 insertions(+), 80 deletions(-)


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

end of thread, other threads:[~2025-07-21  6:01 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-15 20:10 [PATCH v3 0/7] Fix bio splitting by the crypto fallback code Bart Van Assche
2025-07-15 20:10 ` [PATCH v3 1/7] block: Improve blk_crypto_fallback_split_bio_if_needed() Bart Van Assche
2025-07-16 11:49   ` John Garry
2025-07-16 17:20     ` Bart Van Assche
2025-07-15 20:10 ` [PATCH v3 2/7] block: Split blk_crypto_fallback_split_bio_if_needed() Bart Van Assche
2025-07-15 20:10 ` [PATCH v3 3/7] block: Modify the blk_crypto_bio_prep() calling convention Bart Van Assche
2025-07-15 20:10 ` [PATCH v3 4/7] block: Modify the blk_crypto_fallback_bio_prep() " Bart Van Assche
2025-07-15 20:10 ` [PATCH v3 5/7] block: Change the blk_crypto_fallback_encrypt_bio() " Bart Van Assche
2025-07-15 20:10 ` [PATCH v3 6/7] block: Rework splitting of encrypted bios Bart Van Assche
2025-07-15 20:10 ` [PATCH v3 7/7] block, crypto: Remove crypto_bio_split Bart Van Assche
2025-07-15 21:44 ` [PATCH v3 0/7] Fix bio splitting by the crypto fallback code Eric Biggers
2025-07-15 22:35   ` Bart Van Assche
2025-07-16  1:14     ` Eric Biggers
2025-07-16 11:25   ` Christoph Hellwig
2025-07-17  4:43   ` Christoph Hellwig
2025-07-17 17:58     ` Bart Van Assche
2025-07-18  8:17       ` Christoph Hellwig
2025-07-18 15:37     ` Bart Van Assche
2025-07-18 16:50       ` Eric Biggers
2025-07-21  6:01         ` Christoph Hellwig
2025-07-16 16:12 ` Bart Van Assche

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.