From: J. Bruce Fields Date: Thu, 14 Mar 2013 22:20:01 +0000 (-0400) Subject: nfsd4: destroy_clientid simplification X-Git-Tag: next-20130404~91^2~9 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c0293b0131a8d582af85023c684786f7536f0767;p=karo-tx-linux.git 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 --- 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 if (conf) { clp = conf; - if (!is_client_expired(conf) && client_has_state(conf)) { - status = nfserr_clientid_busy; - goto out; - } - - /* rfc5661 18.50.3 */ - if (cstate->session && conf == cstate->session->se_client) { + if (client_has_state(conf)) { status = nfserr_clientid_busy; goto out; }