xenblk: Add O_DIRECT and O_SYNC support.
Quoted 16 lines · Jens Axboe
I guess he needs that for waiting on them, but it really should just do:
struct bio *bio = NULL; loop { if (bio) { submit_bio(bio, ...); bio = NULL; } bio = bio_alloc(...); ... } if (bio) submit_bio(bio, ...);
Quoted 1 line
and be done with it.
Yes, I can put together a patch for that easily enough, I think.
-- Keir