Fix Q counts during requeue and merges.
authorDave Boutcher <boutcher@cs.umn.edu>
Thu, 3 Jan 2008 15:21:32 +0000 (10:21 -0500)
committerAlan D. Brunelle <adb@bannor.(none)>
Thu, 3 Jan 2008 15:21:32 +0000 (10:21 -0500)
commit461afe819c41fa811f9c6264524cb8edbd2acc63
tree3be614c8339093d499dee0cb43aa7e8b01ca8c97
parentae6d30f4475181d685d1f33faf056755803f189b
Fix Q counts during requeue and merges.

It looks to me like btt doesn't correctly keep track
of the number of requests currently in the queue for
a device.  n_act_q gets incremented in trace_queue
and decremented in trace_issue, but I think it also
needs to get updated in trace_merge and trace_requeue.

The one thing I'm not sure about is whether we want
r_iop->dip->n_qs++ in the new handle_requeue routine.

The following patch makes the "active requests at Q"
count a little more sane for me.  This is against
git as of yesterday.
Signed-off-by: Alan D. Brunelle <Alan.Brunelle@hp.com>
btt/trace_im.c
btt/trace_requeue.c