NFSv4: Fix the locking in nfs_inode_reclaim_delegation()
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Sat, 1 May 2010 16:36:18 +0000 (12:36 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sat, 1 May 2010 16:36:18 +0000 (12:36 -0400)
commit8f649c376254755f2261a693b3d48d09126218dc
tree818338eca6dea5c7e022a3a6df51c3b2aa9e54b7
parentbe1066bbcd443a65df312fdecea7e4959adedb45
NFSv4: Fix the locking in nfs_inode_reclaim_delegation()

Ensure that we correctly rcu-dereference the delegation itself, and that we
protect against removal while we're changing the contents.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
fs/nfs/delegation.c