[PATCH v3 4/9] block: export bio_chain_and_submit

zhangshida posted 9 patches 2 days, 13 hours ago
There is a newer version of this series
[PATCH v3 4/9] block: export bio_chain_and_submit
Posted by zhangshida 2 days, 13 hours ago
From: Shida Zhang <zhangshida@kylinos.cn>

Export the bio_chain_and_submit function to make it available as a
common utility. This will allow replacing repetitive bio chaining
patterns found in multiple locations throughout the codebase.

Signed-off-by: Shida Zhang <zhangshida@kylinos.cn>
---
 block/bio.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/block/bio.c b/block/bio.c
index 097c1cd2054..7aa4a1d3672 100644
--- a/block/bio.c
+++ b/block/bio.c
@@ -368,6 +368,7 @@ struct bio *bio_chain_and_submit(struct bio *prev, struct bio *new)
 	}
 	return new;
 }
+EXPORT_SYMBOL_GPL(bio_chain_and_submit);
 
 struct bio *blk_next_bio(struct bio *bio, struct block_device *bdev,
 		unsigned int nr_pages, blk_opf_t opf, gfp_t gfp)
-- 
2.34.1
Re: [PATCH v3 4/9] block: export bio_chain_and_submit
Posted by Christoph Hellwig 16 hours ago
Please split this and the remainder into a separate series, to be
resubmitted after -rc1.