Skip to content

Commit 3cc9fda

Browse files
author
J. Bruce Fields
committed
nfsd4: remove redundant is_open_owner check
When called with OPEN_STATE, preprocess_seqid_op only returns an open stateid, hence only an open owner. Signed-off-by: J. Bruce Fields <bfields@redhat.com>
1 parent b34f27a commit 3cc9fda

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎fs/nfsd/nfs4state.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4017,8 +4017,6 @@ nfsd4_lock(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
40174017
goto out;
40184018
status = nfserr_bad_stateid;
40194019
open_sop = lock->lk_replay_owner;
4020-
if (!open_sop->so_is_open_owner)
4021-
goto out;
40224020
if (!nfsd4_has_session(cstate) &&
40234021
!same_clid(&open_sop->so_client->cl_clientid,
40244022
&lock->v.new.clientid))

0 commit comments

Comments
 (0)