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()
678 * move on to a new sequence number and so we have to be able to push in xlog_cil_push_work()
679 * this sequence again later. in xlog_cil_push_work()
688 /* check for a previously pushed sequence */ in xlog_cil_push_work()
689 if (push_seq < cil->xc_ctx->sequence) { in xlog_cil_push_work()
701 * the current sequence not being found on the committing list; in xlog_cil_push_work()
703 * an unchanged sequence number in xlog_cil_push_work()
706 * list before emptying the CIL and bumping the sequence number. Hence in xlog_cil_push_work()
707 * an empty CIL and an unchanged sequence number means we jumped out in xlog_cil_push_work()
710 * Hence the waiter will either find the commit sequence on the in xlog_cil_push_work()
711 * committing list or the sequence number will be unchanged and the CIL in xlog_cil_push_work()
715 * sequence may fully commit between the attempts the wait makes to wait in xlog_cil_push_work()
716 * on the commit sequence. in xlog_cil_push_work()
747 * during log forces to extract the commit lsn of the sequence that in xlog_cil_push_work()
752 new_ctx->sequence = ctx->sequence + 1; in xlog_cil_push_work()
775 * xfs_log_force_lsn requires us to mirror the new sequence into the cil in xlog_cil_push_work()
776 * structure atomically with the addition of this sequence to the in xlog_cil_push_work()
778 * against the current sequence in log forces without risking in xlog_cil_push_work()
782 cil->xc_current_sequence = new_ctx->sequence; in xlog_cil_push_work()
832 * Don't wait for our own sequence, either. in xlog_cil_push_work()
834 if (new_ctx->sequence >= ctx->sequence) in xlog_cil_push_work()
948 * xlog_cil_push_now() is used to trigger an immediate CIL push to the sequence
969 * If the CIL is empty or we've already pushed the sequence then in xlog_cil_push_now()
1034 xc_commit_lsn = cil->xc_ctx->sequence; in xfs_log_commit_cil()
1068 * Conditionally push the CIL based on the sequence passed in.
1070 * We only need to push if we haven't already pushed the sequence
1072 * if the push sequence is the same as the current context.
1080 xfs_lsn_t sequence) in xlog_cil_force_lsn() argument
1086 ASSERT(sequence <= cil->xc_current_sequence); in xlog_cil_force_lsn()
1090 * xlog_cil_push() handles racing pushes for the same sequence, in xlog_cil_force_lsn()
1094 xlog_cil_push_now(log, sequence); in xlog_cil_force_lsn()
1097 * See if we can find a previous sequence still committing. in xlog_cil_force_lsn()
1098 * We need to wait for all previous sequence commits to complete in xlog_cil_force_lsn()
1111 if (ctx->sequence > sequence) in xlog_cil_force_lsn()
1121 if (ctx->sequence != sequence) in xlog_cil_force_lsn()
1129 * Hence by the time we have got here it our sequence may not have been in xlog_cil_force_lsn()
1130 * pushed yet. This is true if the current sequence still matches the in xlog_cil_force_lsn()
1131 * push sequence after the above wait loop and the CIL still contains in xlog_cil_force_lsn()
1136 * current sequence number is unchanged then the CIL contents are in xlog_cil_force_lsn()
1142 if (sequence == cil->xc_current_sequence && in xlog_cil_force_lsn()
1164 * Check if the current log item was first committed in this sequence.
1166 * the recorded commit sequence number.
1186 * current sequence, we're in a new checkpoint. in xfs_log_item_in_current_chkpt()
1188 if (XFS_LSN_CMP(lip->li_seq, ctx->sequence) != 0) in xfs_log_item_in_current_chkpt()
1224 ctx->sequence = 1; in xlog_cil_init()
1227 cil->xc_current_sequence = ctx->sequence; in xlog_cil_init()