提交 f5e22bb6 编写于 作者: K Kinglong Mee 提交者: J. Bruce Fields

nfsd: Drop duplicate checking of seqid in nfsd4_create_session()

Signed-off-by: NKinglong Mee <kinglongmee@gmail.com>
Signed-off-by: NJ. Bruce Fields <bfields@redhat.com>
上级 6cd22668
...@@ -2555,11 +2555,9 @@ nfsd4_create_session(struct svc_rqst *rqstp, ...@@ -2555,11 +2555,9 @@ nfsd4_create_session(struct svc_rqst *rqstp,
goto out_free_conn; goto out_free_conn;
cs_slot = &conf->cl_cs_slot; cs_slot = &conf->cl_cs_slot;
status = check_slot_seqid(cr_ses->seqid, cs_slot->sl_seqid, 0); status = check_slot_seqid(cr_ses->seqid, cs_slot->sl_seqid, 0);
if (status == nfserr_replay_cache) { if (status) {
status = nfsd4_replay_create_session(cr_ses, cs_slot); if (status == nfserr_replay_cache)
goto out_free_conn; status = nfsd4_replay_create_session(cr_ses, cs_slot);
} else if (cr_ses->seqid != cs_slot->sl_seqid + 1) {
status = nfserr_seq_misordered;
goto out_free_conn; goto out_free_conn;
} }
} else if (unconf) { } else if (unconf) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册