Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f5e22bb6 authored by Kinglong Mee's avatar Kinglong Mee Committed by J. Bruce Fields
Browse files

nfsd: Drop duplicate checking of seqid in nfsd4_create_session()

parent 6cd22668
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -2555,12 +2555,10 @@ nfsd4_create_session(struct svc_rqst *rqstp,
			goto out_free_conn;
		cs_slot = &conf->cl_cs_slot;
		status = check_slot_seqid(cr_ses->seqid, cs_slot->sl_seqid, 0);
		if (status == nfserr_replay_cache) {
		if (status) {
			if (status == nfserr_replay_cache)
				status = nfsd4_replay_create_session(cr_ses, cs_slot);
			goto out_free_conn;
		} else if (cr_ses->seqid != cs_slot->sl_seqid + 1) {
			status = nfserr_seq_misordered;
			goto out_free_conn;
		}
	} else if (unconf) {
		if (!same_creds(&unconf->cl_cred, &rqstp->rq_cred) ||