linux/Documentation/block
Christoph Hellwig bb8e2019ad blk-crypto: handle the fallback above the block layer
Add a blk_crypto_submit_bio helper that either submits the bio when
it is not encrypted or inline encryption is provided, but otherwise
handles the encryption before going down into the low-level driver.
This reduces the risk from bio reordering and keeps memory allocation
as high up in the stack as possible.

Note that if the submitter knows that inline enctryption is known to
be supported by the underyling driver, it can still use plain
submit_bio.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Biggers <ebiggers@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2026-01-11 12:55:41 -07:00
..
bfq-iosched.rst docs: block: Fix grammar and spelling mistakes in bfq-iosched.rst 2024-09-05 14:38:10 -06:00
biovecs.rst mm/page_io: introduce bio_first_folio_all() 2023-08-18 10:12:45 -07:00
blk-mq.rst docs: block: blk-mq.rst: correct places -> place 2023-09-22 05:30:21 -06:00
cmdline-partition.rst docs: block: Document support for read-only partition in cmdline part 2024-10-22 08:14:56 -06:00
data-integrity.rst block: move integrity information into queue_limits 2024-06-14 10:20:07 -06:00
deadline-iosched.rst docs: block: convert to ReST 2019-07-15 09:20:27 -03:00
index.rst Documentation/block: drop the request.rst file 2023-05-12 11:04:58 -06:00
inline-encryption.rst blk-crypto: handle the fallback above the block layer 2026-01-11 12:55:41 -07:00
ioprio.rst Documentation: block: ioprio: Update schedulers 2024-01-18 08:21:14 -07:00
kyber-iosched.rst docs: block: convert to ReST 2019-07-15 09:20:27 -03:00
null_blk.rst null_blk: add module parameters for 4 options 2022-08-02 17:14:50 -06:00
pr.rst Documentation: block: eliminate duplicated word 2020-07-13 09:44:05 -06:00
stat.rst docs: block: fix stat.rst document error 2021-06-04 11:23:36 -06:00
switching-sched.rst Documenation: switching-sched: Remove notes about elevator argument 2019-09-03 08:04:02 -06:00
ublk.rst Documentation: ublk: Separate UBLK_F_AUTO_BUF_REG fallback behavior sublists 2025-06-13 09:25:42 -06:00
writeback_cache_control.rst block: fix spelling and grammar for in writeback_cache_control.rst 2024-06-20 06:53:14 -06:00