]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
NFSv4: Fix up the dereferencing of delegation->inode
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 23 Dec 2008 20:21:39 +0000 (15:21 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 23 Dec 2008 20:21:39 +0000 (15:21 -0500)
commit86e894899820f2b3094d5557124fc22743ae0fc7
tree7cca2c88701f8e5480a364e838fa3c66dcc6a707
parent343104308a33c4f1e23c8e841ede95e97b870842
NFSv4: Fix up the dereferencing of delegation->inode

Without an extra lock, we cannot just assume that the delegation->inode is
valid when we're traversing the rcu-protected nfs_client lists. Use the
delegation->lock to ensure that it is truly valid.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/delegation.c