summaryrefslogtreecommitdiffstats
path: root/fs/nfsd
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2021-01-21 17:57:37 -0500
committerChuck Lever <chuck.lever@oracle.com>2021-01-25 09:36:29 -0500
commit33311873adb0d55c287b164117b5b4bb7b1bdc40 (patch)
treea65003ad17f5fd5e74d0a79f9b123bc6fcf52485 /fs/nfsd
parent4ff923ce1e104c27b55f123ca9dbaa31fdb468ad (diff)
downloadlinux-stable-33311873adb0d55c287b164117b5b4bb7b1bdc40.tar.gz
linux-stable-33311873adb0d55c287b164117b5b4bb7b1bdc40.tar.bz2
linux-stable-33311873adb0d55c287b164117b5b4bb7b1bdc40.zip
nfsd4: simplify process_lookup1
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>
Diffstat (limited to 'fs/nfsd')
-rw-r--r--fs/nfsd/nfs4state.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index 1d2cd6a88f61..f9f89229dba6 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -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: