NFSv4: Fix a race in nfs_inode_reclaim_delegation()
authorTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 22 Sep 2016 17:39:12 +0000 (13:39 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 27 Sep 2016 18:34:54 +0000 (14:34 -0400)
commitb1a318de9bc4946ad4a20481ab3ce28c2e8cd72c
treee130b82c8bb97e7eec1adba8dc4f06aa6958d343
parent9c27869d3f0680fa01d15616891a666d9e30fd83
NFSv4: Fix a race in nfs_inode_reclaim_delegation()

If we race with a delegreturn before taking the spin lock, we
currently end up dropping the delegation stateid.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Tested-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/delegation.c