Skip to content

Commit

Permalink
NFSv4: nfs_inode_evict_delegation() should set NFS_DELEGATION_RETURNING
Browse files Browse the repository at this point in the history
In particular, the pnfs return-on-close code will check for that flag,
so ensure we set it appropriately.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
  • Loading branch information
trondmy authored and amschuma-ntap committed Feb 3, 2020
1 parent 65f5160 commit f885ea6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/nfs/delegation.c
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,7 @@ void nfs_inode_evict_delegation(struct inode *inode)

delegation = nfs_inode_detach_delegation(inode);
if (delegation != NULL) {
set_bit(NFS_DELEGATION_RETURNING, &delegation->flags);
set_bit(NFS_DELEGATION_INODE_FREEING, &delegation->flags);
nfs_do_return_delegation(inode, delegation, 1);
nfs_free_delegation(delegation);
Expand Down

0 comments on commit f885ea6

Please sign in to comment.