Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+2
+2
fs/nfs/delegation.c
··· 125 125 continue; 126 126 if (!test_bit(NFS_DELEGATED_STATE, &state->flags)) 127 127 continue; 128 + if (!nfs4_valid_open_stateid(state)) 129 + continue; 128 130 if (!nfs4_stateid_match(&state->stateid, stateid)) 129 131 continue; 130 132 get_nfs_open_context(ctx);