NFS: Don't try to reclaim delegation open state if recovery failed

If state recovery failed, then we should not attempt to reclaim delegated
state.

http://lkml.kernel.org/r/CAN-5tyHwG=Cn2Q9KsHWadewjpTTy_K26ee+UnSvHvG4192p-Xw@mail.gmail.com
Cc: stable@vger.kernel.org
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
This commit is contained in:
Trond Myklebust 2014-10-17 23:02:52 +03:00
parent c606bb8857
commit f8ebf7a8ca
1 changed files with 2 additions and 0 deletions

View File

@ -125,6 +125,8 @@ again:
continue; continue;
if (!test_bit(NFS_DELEGATED_STATE, &state->flags)) if (!test_bit(NFS_DELEGATED_STATE, &state->flags))
continue; continue;
if (!nfs4_valid_open_stateid(state))
continue;
if (!nfs4_stateid_match(&state->stateid, stateid)) if (!nfs4_stateid_match(&state->stateid, stateid))
continue; continue;
get_nfs_open_context(ctx); get_nfs_open_context(ctx);