Lines Matching defs:sequence
65 log->l_cilp->xc_ctx->sequence = 1;
261 * CIL, store the sequence number on the log item so we can
266 lv->lv_item->li_seq = log->l_cilp->xc_ctx->sequence;
629 * If the current sequence is the same as xc_push_seq we need to do a flush. If
630 * xc_push_seq is less than the current sequence, then it has already been
634 * xc_push_seq is checked unlocked against the sequence number for a match.
636 * same sequence twice. If we get a race between multiple pushes for the same
637 * sequence they will block on the first one and then abort, hence avoiding
668 ASSERT(push_seq <= ctx->sequence);
683 * move on to a new sequence number and so we have to be able to push
684 * this sequence again later.
693 /* check for a previously pushed sequence */
694 if (push_seq < cil->xc_ctx->sequence) {
706 * the current sequence not being found on the committing list;
708 * an unchanged sequence number
711 * list before emptying the CIL and bumping the sequence number. Hence
712 * an empty CIL and an unchanged sequence number means we jumped out
715 * Hence the waiter will either find the commit sequence on the
716 * committing list or the sequence number will be unchanged and the CIL
720 * sequence may fully commit between the attempts the wait makes to wait
721 * on the commit sequence.
752 * during log forces to extract the commit lsn of the sequence that
757 new_ctx->sequence = ctx->sequence + 1;
780 * xfs_log_force_seq requires us to mirror the new sequence into the cil
781 * structure atomically with the addition of this sequence to the
783 * against the current sequence in log forces without risking
787 cil->xc_current_sequence = new_ctx->sequence;
837 * Don't wait for our own sequence, either.
839 if (new_ctx->sequence >= ctx->sequence)
960 * xlog_cil_push_now() is used to trigger an immediate CIL push to the sequence
981 * If the CIL is empty or we've already pushed the sequence then
1066 lip->li_ops->iop_committing(lip, cil->xc_ctx->sequence);
1069 *commit_seq = cil->xc_ctx->sequence;
1076 * Conditionally push the CIL based on the sequence passed in.
1078 * We only need to push if we haven't already pushed the sequence
1080 * if the push sequence is the same as the current context.
1088 xfs_csn_t sequence)
1094 ASSERT(sequence <= cil->xc_current_sequence);
1098 * xlog_cil_push() handles racing pushes for the same sequence,
1102 xlog_cil_push_now(log, sequence);
1105 * See if we can find a previous sequence still committing.
1106 * We need to wait for all previous sequence commits to complete
1119 if (ctx->sequence > sequence)
1129 if (ctx->sequence != sequence)
1137 * Hence by the time we have got here it our sequence may not have been
1138 * pushed yet. This is true if the current sequence still matches the
1139 * push sequence after the above wait loop and the CIL still contains
1144 * current sequence number is unchanged then the CIL contents are
1150 if (sequence == cil->xc_current_sequence &&
1172 * Check if the current log item was first committed in this sequence.
1174 * the recorded commit sequence number.
1192 * current sequence, we're in a new checkpoint.
1228 ctx->sequence = 1;
1231 cil->xc_current_sequence = ctx->sequence;