block: add a bio_await_chain helper
authorKeith Busch <kbusch@kernel.org>
Mon, 6 May 2024 04:20:26 +0000 (06:20 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 7 May 2024 13:29:42 +0000 (07:29 -0600)
commit0f8e9ecc4636e3abb4f3cf1ead14c94cce7dfde8
tree6f321d692a7047694ba88e824f52ab0b77eb90a5
parente8b4869bc78da1a71f2a2ab476caf50c1dcfeed0
block: add a bio_await_chain helper

Add a helper to wait for an entire chain of bios to complete.

[hch: split from a larger patch, moved and changed the name now that it
 is non-static]

Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20240506042027.2289826-6-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c
block/blk.h