block: add a bio_chain_and_submit helper
authorChristoph Hellwig <hch@lst.de>
Mon, 6 May 2024 04:20:24 +0000 (06:20 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 7 May 2024 13:29:42 +0000 (07:29 -0600)
commit81c2168c229bab0665e862937bb476f18cff056d
treea96b233b540d299a767a343997d8b1a11efe10d5
parent30f1e724142242a453f92d90b33e030014900bf0
block: add a bio_chain_and_submit helper

This is basically blk_next_bio just with the bio allocation moved
to the caller to allow for more flexible bio handling in the caller.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20240506042027.2289826-4-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c
include/linux/bio.h