diff options
author | J. Bruce Fields <bfields@redhat.com> | 2012-10-26 22:12:31 +0200 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2012-11-08 01:31:34 +0100 |
commit | face15025ffdf664de95e86ae831544154d26c9c (patch) | |
tree | 7b848b1a55182da4368e182ab5bc9e3f52043263 /fs/nfsd/state.h | |
parent | nfsd: assume writeable exportabled filesystems have f_sync (diff) | |
download | linux-face15025ffdf664de95e86ae831544154d26c9c.tar.xz linux-face15025ffdf664de95e86ae831544154d26c9c.zip |
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 <pstaubach@exagrid.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/state.h')
0 files changed, 0 insertions, 0 deletions