linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] Fix bio splitting in the crypto fallback code
@ 2025-06-25 23:42 Bart Van Assche
  2025-06-25 23:42 ` [PATCH 1/3] block: Split blk_crypto_fallback_split_bio_if_needed() Bart Van Assche
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Bart Van Assche @ 2025-06-25 23:42 UTC (permalink / raw)
  To: Jens Axboe
  Cc: linux-block, Eric Biggers, Keith Busch, Christop Hellwig,
	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. Additionally, 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.

Bart Van Assche (3):
  block: Split blk_crypto_fallback_split_bio_if_needed()
  block: Introduce the BLK_FEAT_CALLS_BIO_SPLIT_TO_LIMITS flag
  block: Rework splitting of encrypted bios

 block/bio.c                 |  3 +++
 block/blk-core.c            | 19 ++++++++-----
 block/blk-crypto-fallback.c | 53 ++++++++++++++++++++-----------------
 block/blk-crypto-internal.h |  7 +++++
 block/blk-crypto.c          |  3 ++-
 block/blk-merge.c           | 13 +++++++--
 block/blk-mq.c              |  3 ++-
 block/blk.h                 |  9 +++++++
 include/linux/blk_types.h   |  1 +
 include/linux/blkdev.h      |  6 ++++-
 10 files changed, 81 insertions(+), 36 deletions(-)


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

end of thread, other threads:[~2025-07-10 18:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-25 23:42 [PATCH 0/3] Fix bio splitting in the crypto fallback code Bart Van Assche
2025-06-25 23:42 ` [PATCH 1/3] block: Split blk_crypto_fallback_split_bio_if_needed() Bart Van Assche
2025-06-25 23:42 ` [PATCH 2/3] block: Introduce the BLK_FEAT_CALLS_BIO_SPLIT_TO_LIMITS flag Bart Van Assche
2025-06-26  5:24   ` Christop Hellwig
2025-06-25 23:42 ` [PATCH 3/3] block: Rework splitting of encrypted bios Bart Van Assche
2025-06-26  5:28   ` Christop Hellwig
2025-07-10 18:04     ` Bart Van Assche

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).