From: J. Bruce Fields Date: Fri, 26 Oct 2012 20:12:31 +0000 (-0400) Subject: nfsd: use vfs_fsync_range(), not O_SYNC, for stable writes X-Git-Tag: v3.8-rc1~20^2~102 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=face15025ffdf664de95e86ae831544154d26c9c;p=pandora-kernel.git nfsd: use vfs_fsync_range(), not O_SYNC, for stable writes NFSv4 shares the same struct file across multiple writes. (And we'd like NFSv2 and NFSv3 to do that as well some day.) So setting O_SYNC on the struct file as a way to request a synchronous write doesn't work. Instead, do a vfs_fsync_range() in that case. Reported-by: Peter Staubach Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed