aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/nfsd/nfs4state.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index 02c23b7c5cd5..7f1282859cd6 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -1510,7 +1510,7 @@ nfsd4_create_session(struct svc_rqst *rqstp,
1510 if (status) { 1510 if (status) {
1511 /* an unconfirmed replay returns misordered */ 1511 /* an unconfirmed replay returns misordered */
1512 status = nfserr_seq_misordered; 1512 status = nfserr_seq_misordered;
1513 goto out_cache; 1513 goto out;
1514 } 1514 }
1515 1515
1516 cs_slot->sl_seqid++; /* from 0 to 1 */ 1516 cs_slot->sl_seqid++; /* from 0 to 1 */
@@ -1549,7 +1549,6 @@ nfsd4_create_session(struct svc_rqst *rqstp,
1549 NFS4_MAX_SESSIONID_LEN); 1549 NFS4_MAX_SESSIONID_LEN);
1550 cr_ses->seqid = cs_slot->sl_seqid; 1550 cr_ses->seqid = cs_slot->sl_seqid;
1551 1551
1552out_cache:
1553 /* cache solo and embedded create sessions under the state lock */ 1552 /* cache solo and embedded create sessions under the state lock */
1554 nfsd4_cache_create_session(cr_ses, cs_slot, status); 1553 nfsd4_cache_create_session(cr_ses, cs_slot, status);
1555out: 1554out: