Skip to contentSkip to conversation

xenblk: Add O_DIRECT and O_SYNC support.

PATCH Keir Fraser 2 participants 2 messages Nov 6, 2008 – Nov 7, 2008 2 messages not in the archive

lore
Share & tools
lore
#3 lore raw
In reply to a message not in the archive
Quoted 11 lines · Jens Axboe
Quoted 10 lines · Keir Fraser
Quoted 7 lines · Jens Axboe
Quoted 3 lines
Quoted 1 line

and be done with it.

Yes, I can put together a patch for that easily enough, I think.

Should be easy enough. Also be sure to defer any unplugging of the device until the very end, to still make a lot of room for merging and sorting.

Quoted 7 lines
Quoted 1 line

http://xenbits.xensource.com/staging/linux-2.6.18-xen.hg c/s 723

Looks fine, but you can also get rid of the fail_put_bio and check for NULL return from bio_alloc(), since it'll never fail if you use GFP_KERNEL as the allocation mask. That's why you cannot nest allocations as well.

OK, will take a testing for this patch, thanks all.

Joe