t/btrace2fio: don't dec inflight for requeue
authorJens Axboe <axboe@fb.com>
Tue, 11 Nov 2014 16:39:11 +0000 (09:39 -0700)
committerJens Axboe <axboe@fb.com>
Tue, 11 Nov 2014 16:39:11 +0000 (09:39 -0700)
We don't inc it again on issue, so we'll end up with an assert
trigger on inflight going negative.

Signed-off-by: Jens Axboe <axboe@fb.com>
t/btrace2fio.c

index efe25c4c1100b394bc317ad808a575b0a59556fd..04d4a28dd2ccfd8ca85496e6a17dd6724573082c 100644 (file)
@@ -365,8 +365,6 @@ static int handle_trace(struct blk_io_trace *t, struct btrace_pid *p)
        if (act == __BLK_TA_QUEUE) {
                inflight_add(p, t->sector, t->bytes);
                ret = handle_queue_trace(t, p);
        if (act == __BLK_TA_QUEUE) {
                inflight_add(p, t->sector, t->bytes);
                ret = handle_queue_trace(t, p);
-       } else if (act == __BLK_TA_REQUEUE) {
-               p->o.inflight--;
        } else if (act == __BLK_TA_BACKMERGE) {
                struct inflight *i;
 
        } else if (act == __BLK_TA_BACKMERGE) {
                struct inflight *i;