Skip to content

Commit d08bf5e

Browse files
committed
NFSD: Remove dead code in nfsd4_create_session()
Clean up. AFAICT, there is no way to reach the out_free_conn label with @old set to a non-NULL value, so the expire_client(old) call is never reached and can be removed. Reviewed-by: Jeff Layton <[email protected]> Signed-off-by: Chuck Lever <[email protected]>
1 parent 4cc9b9f commit d08bf5e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

fs/nfsd/nfs4state.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3954,7 +3954,6 @@ nfsd4_create_session(struct svc_rqst *rqstp,
39543954
return status;
39553955

39563956
out_expired_error:
3957-
old = NULL;
39583957
/*
39593958
* Revert the slot seq_nr change so the server will process
39603959
* the client's resend instead of returning a cached response.
@@ -3969,8 +3968,6 @@ nfsd4_create_session(struct svc_rqst *rqstp,
39693968
out_free_conn:
39703969
spin_unlock(&nn->client_lock);
39713970
free_conn(conn);
3972-
if (old)
3973-
expire_client(old);
39743971
out_free_session:
39753972
__free_session(new);
39763973
out_release_drc_mem:

0 commit comments

Comments
 (0)