[PATCH] Ignore PC packets in btt
authorAlan David Brunelle <Alan.Brunelle@hp.com>
Fri, 1 Sep 2006 07:26:30 +0000 (09:26 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 1 Sep 2006 07:26:30 +0000 (09:26 +0200)
BTT isn't really meant to trace those, and is causing problems with some
seek additions to btt I'm working on.

btt/trace.c

index 00501ba4d5330af0de7c39bd174d458552415cdf..0008ffa563caeb3829495c22ce42ebba6835cc47 100644 (file)
@@ -407,6 +407,8 @@ void add_trace(struct io *iop)
                add_process(iop->t.pid, iop->pdu);
                release_iop(iop);
        }
+       else if (iop->t.action & BLK_TC_ACT(BLK_TC_PC))
+               release_iop(iop);
        else
                __add_trace(iop);
 }