git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fae5096
)
nfsd: use vfs_fsync_range(), not O_SYNC, for stable writes
author
J. Bruce Fields
<bfields@redhat.com>
Fri, 26 Oct 2012 20:12:31 +0000
(16:12 -0400)
committer
J. Bruce Fields
<bfields@redhat.com>
Thu, 8 Nov 2012 00:31:34 +0000
(19:31 -0500)
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 <pstaubach@exagrid.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
No differences found