Lines Matching refs:seqid
144 static int nfsrv_checkseqid(struct nfsrv_descript *nd, u_int32_t seqid,
958 ldumpp[cnt].ndlck_stateid.seqid = stp->ls_stateid.seqid;
992 ldumpp[cnt].ndlck_stateid.seqid = stp->ls_stateid.seqid;
1021 ldumpp[cnt].ndlck_stateid.seqid = stp->ls_stateid.seqid;
1548 if (new_stp->ls_stateid.seqid == 0x0 &&
1553 else if (new_stp->ls_stateid.seqid == 0xffffffff &&
1593 * check against the stateid, before incrementing the seqid#, since
1594 * we want to return NFSERR_BADSTATEID on failure and the seqid#
1711 * If haslock set, we've already checked the seqid.
1748 * If the seqid part of the stateid isn't the same, return
1757 if (!error && stp->ls_stateid.seqid!=new_stp->ls_stateid.seqid &&
1762 new_stp->ls_stateid.seqid != 0)))
1783 * seqid# has been updated, so we can return any error.
2044 stateidp->seqid = ++(stp->ls_stateid.seqid);
2045 if ((nd->nd_flag & ND_NFSV41) != 0 && stateidp->seqid == 0)
2046 stateidp->seqid = stp->ls_stateid.seqid = 1;
2178 stateidp->seqid = ++(lckstp->ls_stateid.seqid);
2179 if ((nd->nd_flag & ND_NFSV41) != 0 && stateidp->seqid == 0)
2180 stateidp->seqid = lckstp->ls_stateid.seqid = 1;
2191 stateidp->seqid = new_stp->ls_stateid.seqid = 1;
2379 stateidp->seqid == 0) ||
2380 stateidp->seqid == stp->ls_stateid.seqid) &&
2513 * the seqid# has already been incremented.
2638 stateidp->seqid == 0) ||
2639 stateidp->seqid == stp->ls_stateid.seqid) &&
2804 stp->ls_stateid.seqid = delegstateidp->seqid = 1;
2825 new_open->ls_stateid.seqid = 1;
2890 new_deleg->ls_stateid.seqid = delegstateidp->seqid = 1;
2929 new_open->ls_stateid.seqid = 1;
2984 stp->ls_stateid.seqid = 1;
2994 openstp->ls_stateid.seqid++;
2996 openstp->ls_stateid.seqid == 0)
2997 openstp->ls_stateid.seqid = 1;
3016 new_deleg->ls_stateid.seqid = delegstateidp->seqid = 1;
3041 new_open->ls_stateid.seqid = 1;
3075 new_deleg->ls_stateid.seqid = delegstateidp->seqid = 1;
3114 new_open->ls_stateid.seqid = 1;
3143 new_deleg->ls_stateid.seqid =
3144 delegstateidp->seqid = 1;
3206 stateidp->seqid = openstp->ls_stateid.seqid;
3272 if (!error && stp->ls_stateid.seqid != new_stp->ls_stateid.seqid &&
3276 new_stp->ls_stateid.seqid != 0)))
3288 * seqid# and there are no byte range locks or other Opens
3303 stateidp->seqid = stp->ls_stateid.seqid + 1;
3304 if ((nd->nd_flag & ND_NFSV41) != 0 && stateidp->seqid == 0)
3305 stateidp->seqid = 1;
3320 stp->ls_stateid.seqid++;
3322 stp->ls_stateid.seqid == 0)
3323 stp->ls_stateid.seqid = 1;
3362 stp->ls_stateid.seqid++;
3364 stp->ls_stateid.seqid == 0)
3365 stp->ls_stateid.seqid = 1;
3429 if (!error && stp->ls_stateid.seqid != stateidp->seqid &&
3430 ((nd->nd_flag & ND_NFSV41) == 0 || stateidp->seqid != 0))
3802 nfsrv_checkseqid(struct nfsrv_descript *nd, u_int32_t seqid,
3818 if ((stp->ls_seq + 1) == seqid) {
3823 stp->ls_seq = seqid;
3825 } else if (stp->ls_seq == seqid && stp->ls_op &&
4021 * not use a lock/open owner seqid#, so the check can be done now.
4158 *tl++ = txdr_unsigned(stateidp->seqid);
5235 stp->ls_stateid.seqid = stateidp->seqid;