From: Christoph Hellwig Date: Wed, 4 Sep 2013 13:04:40 +0000 (+0200) Subject: direct-io: Handle O_(D)SYNC AIO X-Git-Tag: v3.12-rc1~141^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02afc27faec94c9e068517a22acf55400976c698;p=pandora-kernel.git direct-io: Handle O_(D)SYNC AIO Call generic_write_sync() from the deferred I/O completion handler if O_DSYNC is set for a write request. Also make sure various callers don't call generic_write_sync if the direct I/O code returns -EIOCBQUEUED. Based on an earlier patch from Jan Kara with updates from Jeff Moyer and Darrick J. Wong . Signed-off-by: Christoph Hellwig Signed-off-by: Jan Kara Signed-off-by: Al Viro --- Reading git-diff-tree failed