]> Pileus Git - ~andy/linux/blobdiff - fs/nfs/nfs4state.c
NFS: Fix a typo in _nfs_display_fhandle
[~andy/linux] / fs / nfs / nfs4state.c
index bae959e294cdee745a4940308d63771b02e4ede2..2f760604246f7cdca798867e32cedd84da0a5889 100644 (file)
@@ -1106,6 +1106,8 @@ void nfs4_schedule_stateid_recovery(const struct nfs_server *server, struct nfs4
 {
        struct nfs_client *clp = server->nfs_client;
 
+       if (test_and_clear_bit(NFS_DELEGATED_STATE, &state->flags))
+               nfs_async_inode_return_delegation(state->inode, &state->stateid);
        nfs4_state_mark_reclaim_nograce(clp, state);
        nfs4_schedule_state_manager(clp);
 }