blktrace: skip notify traces
authorJens Axboe <jens.axboe@oracle.com>
Thu, 23 Aug 2007 07:03:26 +0000 (09:03 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 23 Aug 2007 07:03:26 +0000 (09:03 +0200)
Fio will not interpret them correctly, resulting in weird behaviour
(like replaying that seems to hang, but is merely just waiting for a
very long time).

Fixes the issue reported by Joshua Root.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
blktrace.c

index b4d05c739cdc6843dedda732908dbd67fdfb21de..58f28ceb664db93a4ca0e97f0405a066929d3b38 100644 (file)
@@ -281,6 +281,8 @@ int load_blktrace(struct thread_data *td, const char *filename)
                        log_err("fio: discarded %d of %d\n", ret, t.pdu_len);
                        goto err;
                }
                        log_err("fio: discarded %d of %d\n", ret, t.pdu_len);
                        goto err;
                }
+               if (t.action & BLK_TC_ACT(BLK_TC_NOTIFY))
+                       continue;
                if (!ttime) {
                        ttime = t.time;
                        cpu = t.cpu;
                if (!ttime) {
                        ttime = t.time;
                        cpu = t.cpu;