]> 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)
commit6a2afd6526b8355316f1478922698014de7d000f
tree4b71836ccd7b74efcd72964427ab95389654e953
parentc9197bf4d3dfda4ec915fefdbccdea8daf02bac0
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: 850bec93953b ("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