Skip to content

Commit 5fcdfac

Browse files
committed
NFSv4: Return delegations synchronously in evict_inode
Kinglong Mee reports that asynchronous delegations are being killed by the call to rpc_shutdown_client() when unmounting. This can lead to state leakage on the server until the client lease expires. Reported-by: Kinglong Mee <[email protected]> Signed-off-by: Trond Myklebust <[email protected]>
1 parent 0695314 commit 5fcdfac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/nfs/delegation.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ void nfs_inode_return_delegation_noreclaim(struct inode *inode)
514514

515515
delegation = nfs_inode_detach_delegation(inode);
516516
if (delegation != NULL)
517-
nfs_do_return_delegation(inode, delegation, 0);
517+
nfs_do_return_delegation(inode, delegation, 1);
518518
}
519519

520520
/**

0 commit comments

Comments
 (0)