nfsd: Ensure sampling of the write verifier is atomic with the write
authorTrond Myklebust <trondmy@gmail.com>
Mon, 6 Jan 2020 18:40:37 +0000 (13:40 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 22 Jan 2020 21:25:41 +0000 (16:25 -0500)
commit19e0663ff9bce2efb87be8b30f9e46b7843600f3
treee4efdf22bb6379391f5182a080db731fa855362d
parent524ff1af226ce0f6348d48b413849b2bd16c5b60
nfsd: Ensure sampling of the write verifier is atomic with the write

When doing an unstable write, we need to ensure that we sample the
write verifier before releasing the lock, and allowing a commit to
the same file to proceed.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs3proc.c
fs/nfsd/nfs3xdr.c
fs/nfsd/nfs4proc.c
fs/nfsd/nfsproc.c
fs/nfsd/vfs.c
fs/nfsd/vfs.h
fs/nfsd/xdr3.h