Skip to contentSkip to conversation

xenblk: Add O_DIRECT and O_SYNC support.

PATCH Keir Fraser 1 participant 1 message Nov 6, 2008 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
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