1
0
Fork 0

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>
hifive-unleashed-5.1
J. Bruce Fields 2011-08-23 15:17:50 -04:00
parent b34f27aa5d
commit 3cc9fda40a
1 changed files with 0 additions and 2 deletions

View File

@ -4017,8 +4017,6 @@ nfsd4_lock(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
goto out;
status = nfserr_bad_stateid;
open_sop = lock->lk_replay_owner;
if (!open_sop->so_is_open_owner)
goto out;
if (!nfsd4_has_session(cstate) &&
!same_clid(&open_sop->so_client->cl_clientid,
&lock->v.new.clientid))