• Home
  • Raw
  • Download

Lines Matching full:sequence

65 	log->l_cilp->xc_ctx->sequence = 1;  in xlog_cil_init_post_recovery()
261 * CIL, store the sequence number on the log item so we can in xfs_cil_prepare_item()
266 lv->lv_item->li_seq = log->l_cilp->xc_ctx->sequence; in xfs_cil_prepare_item()
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); in xlog_cil_push_work()
683 * move on to a new sequence number and so we have to be able to push in xlog_cil_push_work()
684 * this sequence again later. in xlog_cil_push_work()
693 /* check for a previously pushed sequence */ in xlog_cil_push_work()
694 if (push_seq < cil->xc_ctx->sequence) { in xlog_cil_push_work()
706 * the current sequence not being found on the committing list; in xlog_cil_push_work()
708 * an unchanged sequence number in xlog_cil_push_work()
711 * list before emptying the CIL and bumping the sequence number. Hence in xlog_cil_push_work()
712 * an empty CIL and an unchanged sequence number means we jumped out in xlog_cil_push_work()
715 * Hence the waiter will either find the commit sequence on the in xlog_cil_push_work()
716 * committing list or the sequence number will be unchanged and the CIL in xlog_cil_push_work()
720 * sequence may fully commit between the attempts the wait makes to wait in xlog_cil_push_work()
721 * on the commit sequence. in xlog_cil_push_work()
752 * during log forces to extract the commit lsn of the sequence that in xlog_cil_push_work()
757 new_ctx->sequence = ctx->sequence + 1; in xlog_cil_push_work()
780 * xfs_log_force_seq requires us to mirror the new sequence into the cil in xlog_cil_push_work()
781 * structure atomically with the addition of this sequence to the in xlog_cil_push_work()
783 * against the current sequence in log forces without risking in xlog_cil_push_work()
787 cil->xc_current_sequence = new_ctx->sequence; in xlog_cil_push_work()
837 * Don't wait for our own sequence, either. in xlog_cil_push_work()
839 if (new_ctx->sequence >= ctx->sequence) in xlog_cil_push_work()
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 in xlog_cil_push_now()
1066 lip->li_ops->iop_committing(lip, cil->xc_ctx->sequence); in xlog_cil_commit()
1069 *commit_seq = cil->xc_ctx->sequence; in xlog_cil_commit()
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) in xlog_cil_force_seq() argument
1094 ASSERT(sequence <= cil->xc_current_sequence); in xlog_cil_force_seq()
1098 * xlog_cil_push() handles racing pushes for the same sequence, in xlog_cil_force_seq()
1102 xlog_cil_push_now(log, sequence); in xlog_cil_force_seq()
1105 * See if we can find a previous sequence still committing. in xlog_cil_force_seq()
1106 * We need to wait for all previous sequence commits to complete in xlog_cil_force_seq()
1119 if (ctx->sequence > sequence) in xlog_cil_force_seq()
1129 if (ctx->sequence != sequence) in xlog_cil_force_seq()
1137 * Hence by the time we have got here it our sequence may not have been in xlog_cil_force_seq()
1138 * pushed yet. This is true if the current sequence still matches the in xlog_cil_force_seq()
1139 * push sequence after the above wait loop and the CIL still contains in xlog_cil_force_seq()
1144 * current sequence number is unchanged then the CIL contents are in xlog_cil_force_seq()
1150 if (sequence == cil->xc_current_sequence && in xlog_cil_force_seq()
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. in xfs_log_item_in_current_chkpt()
1228 ctx->sequence = 1; in xlog_cil_init()
1231 cil->xc_current_sequence = ctx->sequence; in xlog_cil_init()