diff options
author | J. Bruce Fields <bfields@redhat.com> | 2013-03-14 18:20:01 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2013-04-03 11:48:36 -0400 |
commit | c0293b0131a8d582af85023c684786f7536f0767 (patch) | |
tree | a3df8753a4fa892d031b16e88cbc8966523ce2ba /fs/nfsd/nfs4state.c | |
parent | 1ca507920db36aea8b81fe1443f96a1a6a43318f (diff) |
nfsd4: destroy_clientid simplification
I'm not sure what the check for clientid expiry was meant to do here.
The check for a matching session is redundant given the previous check
for state: a client without state is, in particular, a client without
sessions.
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfs4state.c')
-rw-r--r-- | fs/nfsd/nfs4state.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index 84dfbdfd2d2c..905a5b511047 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c | |||
@@ -2131,13 +2131,7 @@ nfsd4_destroy_clientid(struct svc_rqst *rqstp, struct nfsd4_compound_state *csta | |||
2131 | if (conf) { | 2131 | if (conf) { |
2132 | clp = conf; | 2132 | clp = conf; |
2133 | 2133 | ||
2134 | if (!is_client_expired(conf) && client_has_state(conf)) { | 2134 | if (client_has_state(conf)) { |
2135 | status = nfserr_clientid_busy; | ||
2136 | goto out; | ||
2137 | } | ||
2138 | |||
2139 | /* rfc5661 18.50.3 */ | ||
2140 | if (cstate->session && conf == cstate->session->se_client) { | ||
2141 | status = nfserr_clientid_busy; | 2135 | status = nfserr_clientid_busy; |
2142 | goto out; | 2136 | goto out; |
2143 | } | 2137 | } |