Commit 46280d9d authored by Trond Myklebust's avatar Trond Myklebust Committed by Anna Schumaker

NFSv4: Check the open stateid when searching for expired state

Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
parent 140087fd
...@@ -1431,6 +1431,11 @@ void nfs_inode_find_state_and_recover(struct inode *inode, ...@@ -1431,6 +1431,11 @@ void nfs_inode_find_state_and_recover(struct inode *inode,
found = true; found = true;
continue; continue;
} }
if (nfs4_stateid_match_other(&state->open_stateid, stateid) &&
nfs4_state_mark_reclaim_nograce(clp, state)) {
found = true;
continue;
}
if (nfs_state_lock_state_matches_stateid(state, stateid) && if (nfs_state_lock_state_matches_stateid(state, stateid) &&
nfs4_state_mark_reclaim_nograce(clp, state)) nfs4_state_mark_reclaim_nograce(clp, state))
found = true; found = true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment