diff options
author | Christoph Hellwig <hch@lst.de> | 2024-05-06 07:20:24 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-05-07 16:29:42 +0300 |
commit | 81c2168c229bab0665e862937bb476f18cff056d (patch) | |
tree | a96b233b540d299a767a343997d8b1a11efe10d5 /include/linux/bio.h | |
parent | 30f1e724142242a453f92d90b33e030014900bf0 (diff) | |
download | linux-81c2168c229bab0665e862937bb476f18cff056d.tar.xz |
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>
Diffstat (limited to 'include/linux/bio.h')
-rw-r--r-- | include/linux/bio.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/bio.h b/include/linux/bio.h index 9b8a369f44bc..283a0dcbd1de 100644 --- a/include/linux/bio.h +++ b/include/linux/bio.h @@ -831,5 +831,6 @@ static inline void bio_clear_polled(struct bio *bio) struct bio *blk_next_bio(struct bio *bio, struct block_device *bdev, unsigned int nr_pages, blk_opf_t opf, gfp_t gfp); +struct bio *bio_chain_and_submit(struct bio *prev, struct bio *new); #endif /* __LINUX_BIO_H */ |