diff --git a/fs/xfs/xfs_log.c b/fs/xfs/xfs_log.c index 7fc3c1ad36bc..737f66b5f231 100644 --- a/fs/xfs/xfs_log.c +++ b/fs/xfs/xfs_log.c @@ -3106,6 +3106,8 @@ xlog_state_release_iclog( ASSERT(iclog->ic_state == XLOG_STATE_ACTIVE || iclog->ic_state == XLOG_STATE_WANT_SYNC); + trace_printk("%d: iclog %p ic_state 0x%x \n", __LINE__, iclog, iclog->ic_state); + if (iclog->ic_state == XLOG_STATE_WANT_SYNC) { /* update tail before writing to iclog */ xfs_lsn_t tail_lsn = xlog_assign_tail_lsn(log->l_mp); diff --git a/fs/xfs/xfs_log_cil.c b/fs/xfs/xfs_log_cil.c index fa5602d0fd7f..7145ba6c9c10 100644 --- a/fs/xfs/xfs_log_cil.c +++ b/fs/xfs/xfs_log_cil.c @@ -803,6 +803,7 @@ xlog_cil_push( lvhdr.lv_iovecp = &lhdr; lvhdr.lv_next = ctx->lv_chain; + trace_printk("%d: ctx->space_used %d\n", __LINE__, ctx->space_used); error = xlog_write(log, &lvhdr, tic, &ctx->start_lsn, NULL, 0); if (error) goto out_abort_free_ticket; @@ -845,6 +846,7 @@ xlog_cil_push( commit_lsn = xfs_log_done(log->l_mp, tic, &commit_iclog, false); if (commit_lsn == -1) goto out_abort; + trace_printk("%d: commit_iclog %p ic_state 0x%x\n", __LINE__, commit_iclog, commit_iclog->ic_state); spin_lock(&commit_iclog->ic_callback_lock); if (commit_iclog->ic_state & XLOG_STATE_IOERROR) { @@ -919,6 +921,7 @@ xlog_cil_push_background( spin_lock(&cil->xc_push_lock); if (cil->xc_push_seq < cil->xc_current_sequence) { + trace_printk("%d: xlog_cil_push_background()\n", __LINE__); cil->xc_push_seq = cil->xc_current_sequence; queue_work(log->l_mp->m_cil_workqueue, &cil->xc_push_work); }