]> git.baikalelectronics.ru Git - kernel.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)
commit2327400ec2d7b8de2c80d81c686c4450ffa8d6b0
tree4b71836ccd7b74efcd72964427ab95389654e953
parentf5d4365808c9cbfc78c6ba4ad173b1b8b50f11b0
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: 71af6786c98d ("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