]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
nfsd4: simplify process_lookup1
authorJ. Bruce Fields <bfields@redhat.com>
Thu, 21 Jan 2021 22:57:37 +0000 (17:57 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 25 Jan 2021 14:36:29 +0000 (09:36 -0500)
This STALE_CLIENTID check is redundant with the one in
lookup_clientid().

There's a difference in behavior is in case of memory allocation
failure, which I think isn't a big deal.

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

index 1d2cd6a88f61d22ace07b9325ac0cae1e4171a23..f9f89229dba6d7b2e4bcc5b896c1afa1c863d76a 100644 (file)
@@ -4680,8 +4680,6 @@ nfsd4_process_open1(struct nfsd4_compound_state *cstate,
        struct nfs4_openowner *oo = NULL;
        __be32 status;
 
-       if (STALE_CLIENTID(&open->op_clientid, nn))
-               return nfserr_stale_clientid;
        /*
         * In case we need it later, after we've already created the
         * file and don't want to risk a further failure: