diff options
author | Trond Myklebust <[email protected]> | 2015-02-26 16:09:04 -0500 |
---|---|---|
committer | Trond Myklebust <[email protected]> | 2015-03-01 23:23:05 -0500 |
commit | f044636d972246d451e06226cc1675d5da389762 (patch) | |
tree | 7fbfe0ffc4f5a5b3f9ccf56de8fe887c7394027c /net/unix/sysctl_net_unix.c | |
parent | 140e049c64ce848392adbf4678983ecc76888dde (diff) |
NFS: Add attribute update barriers to nfs_setattr_update_inode()
Ensure that other operations which raced with our setattr RPC call
cannot revert the file attribute changes that were made on the server.
To do so, we artificially bump the attribute generation counter on
the inode so that all calls to nfs_fattr_init() that precede ours
will be dropped.
The motivation for the patch came from Chuck Lever's reports of readaheads
racing with truncate operations and causing the file size to be reverted.
Reported-by: Chuck Lever <[email protected]>
Signed-off-by: Trond Myklebust <[email protected]>
Tested-by: Chuck Lever <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions