bio_chain (9) - Linux Man Pages
bio_chain: chain bio completions
bio_chain - chain bio completions
void bio_chain(struct bio
*bio, struct bio *parent);
- the target bio
- the bio's parent bio
The caller won't have a bi_end_io called when bio completes - instead, parent's bi_end_io won't be called until both parent and bio have completed; the chained bio will also be freed when it completes.