]> www.infradead.org Git - users/willy/xarray.git/commit
NFS: Beware when dereferencing the delegation cred
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 2 Apr 2020 19:27:09 +0000 (15:27 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 3 Apr 2020 22:26:02 +0000 (18:26 -0400)
commitfc51b1cf391dd91ff9362861ed226ef51048e863
tree4b71836ccd7b74efcd72964427ab95389654e953
parentf30a6ea0f3a582cea72b0373612d4b38f383fbd9
NFS: Beware when dereferencing the delegation cred

When we look up the delegation cred, we are usually doing so in
conjunction with a read of the stateid, and we want to ensure
that the look up is atomic with that read.

Fixes: 57f188e04773 ("NFSv4: nfs_update_inplace_delegation() should update delegation cred")
[sfr@canb.auug.org.au: Fixed up borken Fixes: line from Trond :-)]
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/delegation.c
fs/nfs/nfs4proc.c