File 0001-Update-q_iop-c_time-in-handle_queue.patch of Package blktrace
From 9994bb6605af4b6e03335a2e0892a5192e3b84a2 Mon Sep 17 00:00:00 2001
From: Jan Blunck <jblunck@suse.de>
Date: Tue, 16 Jun 2009 12:59:56 +0200
Subject: [PATCH] Update q_iop->c_time in handle_queue()
This fixes a typo spotted by David Binderman <dcb314@hotmail.com> where
i_time was used twice in the assignment where c_time should be used
instead.
Signed-off-by: Jan Blunck <jblunck@suse.de>
---
btt/trace_queue.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/btt/trace_queue.c b/btt/trace_queue.c
index 82c5760..64c991e 100644
--- a/btt/trace_queue.c
+++ b/btt/trace_queue.c
@@ -33,8 +33,8 @@ static void handle_queue(struct io *q_iop)
update_lq(&last_q, &all_avgs.q2q, q_iop->t.time);
}
- q_iop->i_time = q_iop->g_time = q_iop->i_time = q_iop->m_time =
- q_iop->d_time = (__u64)-1;
+ q_iop->g_time = q_iop->i_time = q_iop->m_time = q_iop->d_time =
+ q_iop->c_time = (__u64)-1;
q_iop->dip->n_qs++;
q_iop->dip->t_act_q += q_iop->dip->n_act_q;
--
1.6.1.3