nfsd: simplify process_lock
authorJ. Bruce Fields <bfields@redhat.com>
Thu, 21 Jan 2021 22:57:38 +0000 (17:57 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 25 Jan 2021 14:36:29 +0000 (09:36 -0500)
commita9d53a75cf574d6aa41f3cb4968fffe4f64e0fad
tree7045482258909bd9a7668b84c80f5f79e1329daf
parent33311873adb0d55c287b164117b5b4bb7b1bdc40
nfsd: simplify process_lock

Similarly, this STALE_CLIENTID check is already handled by:

nfs4_preprocess_confirmed_seqid_op()->
        nfs4_preprocess_seqid_op()->
                nfsd4_lookup_stateid()->
                        set_client()->
                                STALE_CLIENTID()

(This may cause it to return a different error in some cases where
there are multiple things wrong; pynfs test SEQ10 regressed on this
commit because of that, but I think that's the test's fault, and I've
fixed it separately.)

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs4state.c