diff options
Diffstat (limited to 'fs/nfsd/nfs4state.c')
-rw-r--r-- | fs/nfsd/nfs4state.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index bba9fff49cfe..737315c61e7e 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c | |||
@@ -1443,11 +1443,10 @@ nfsd4_sequence(struct svc_rqst *rqstp, | |||
1443 | cstate->slot = slot; | 1443 | cstate->slot = slot; |
1444 | cstate->session = session; | 1444 | cstate->session = session; |
1445 | 1445 | ||
1446 | /* Hold a session reference until done processing the compound: | ||
1447 | * nfsd4_put_session called only if the cstate slot is set. | ||
1448 | */ | ||
1449 | nfsd4_get_session(session); | ||
1450 | out: | 1446 | out: |
1447 | /* Hold a session reference until done processing the compound. */ | ||
1448 | if (cstate->session) | ||
1449 | nfsd4_get_session(cstate->session); | ||
1451 | spin_unlock(&sessionid_lock); | 1450 | spin_unlock(&sessionid_lock); |
1452 | /* Renew the clientid on success and on replay */ | 1451 | /* Renew the clientid on success and on replay */ |
1453 | if (cstate->session) { | 1452 | if (cstate->session) { |