Guest User

Untitled

a guest
Dec 13th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. /*
  2. * Wait on and process all in-flight BIOs. This must only be called once
  3. * all bios have been issued so that the refcount can only decrease.
  4. * This just waits for all bios to make it through dio_bio_complete. IO
  5. * errors are propagated through dio->io_error and should be propagated via
  6. * dio_complete().
  7. */
  8. static void dio_await_completion(struct dio *dio)
  9. {
  10. struct bio *bio;
  11. do {
  12. bio = dio_await_one(dio);
  13. if (bio)
  14. dio_bio_complete(dio, bio);
  15. } while (bio);
  16. }
Add Comment
Please, Sign In to add comment