diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2024-02-15 20:24:51 -0500 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2024-03-01 09:12:33 -0500 |
commit | 24d92de9186ebc340687caf7356e1070773e67bc (patch) | |
tree | 5ce32cf2925b847c755d5f3b4a9daf91390264e0 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 6412e44c40aaf8f1d7320b2099c5bdd6cb9126ac (diff) |
nfsd: Fix NFSv3 atomicity bugs in nfsd_setattr()
The main point of the guarded SETATTR is to prevent races with other
WRITE and SETATTR calls. That requires that the check of the guard time
against the inode ctime be done after taking the inode lock.
Furthermore, we need to take into account the 32-bit nature of
timestamps in NFSv3, and the possibility that files may change at a
faster rate than once a second.
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: NeilBrown <neilb@suse.de>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions