提交 cd5b8144 编写于 作者: J J. Bruce Fields

nfsd4: don't cache seq_misordered replies

Signed-off-by: NJ. Bruce Fields <bfields@redhat.com>
上级 92476850
...@@ -1510,7 +1510,7 @@ nfsd4_create_session(struct svc_rqst *rqstp, ...@@ -1510,7 +1510,7 @@ nfsd4_create_session(struct svc_rqst *rqstp,
if (status) { if (status) {
/* an unconfirmed replay returns misordered */ /* an unconfirmed replay returns misordered */
status = nfserr_seq_misordered; status = nfserr_seq_misordered;
goto out_cache; goto out;
} }
cs_slot->sl_seqid++; /* from 0 to 1 */ cs_slot->sl_seqid++; /* from 0 to 1 */
...@@ -1549,7 +1549,6 @@ nfsd4_create_session(struct svc_rqst *rqstp, ...@@ -1549,7 +1549,6 @@ nfsd4_create_session(struct svc_rqst *rqstp,
NFS4_MAX_SESSIONID_LEN); NFS4_MAX_SESSIONID_LEN);
cr_ses->seqid = cs_slot->sl_seqid; cr_ses->seqid = cs_slot->sl_seqid;
out_cache:
/* cache solo and embedded create sessions under the state lock */ /* cache solo and embedded create sessions under the state lock */
nfsd4_cache_create_session(cr_ses, cs_slot, status); nfsd4_cache_create_session(cr_ses, cs_slot, status);
out: out:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册