NFSv4: Ensure we honour NFS_DELEGATION_RETURNING in nfs_inode_set_delegation()
authorTrond Myklebust <trond.myklebust@primarydata.com>
Fri, 27 Feb 2015 19:25:50 +0000 (14:25 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 2 Mar 2015 23:09:14 +0000 (18:09 -0500)
commitade04647dd56881e285983af3db702d56ee97e86
tree9a88d7c034768ad576e0434e73ed435656b0a213
parentb04b22f4ca691280f0ab3f77954f5a21500881e7
NFSv4: Ensure we honour NFS_DELEGATION_RETURNING in nfs_inode_set_delegation()

Ensure that nfs_inode_set_delegation() doesn't inadvertently detach a
delegation that is already in the process of being returned.

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