From: Jens Axboe Date: Wed, 16 May 2007 10:29:06 +0000 (+0200) Subject: blktrace support: discard notify messages X-Git-Tag: fio-1.16.2~14 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=3f3d36166670a447679b308559c681293eb2b857 blktrace support: discard notify messages They are not interesting to us (they contain things like timestamps and process information). Signed-off-by: Jens Axboe --- diff --git a/blktrace.c b/blktrace.c index 8ba538ae..5825d297 100644 --- a/blktrace.c +++ b/blktrace.c @@ -133,11 +133,7 @@ static void handle_trace(struct thread_data *td, struct blk_io_trace *t, return; if (t->action & BLK_TC_ACT(BLK_TC_PC)) return; - - /* - * should not happen, need to look into that... - */ - if (!t->bytes) + if (t->action & BLK_TC_ACT(BLK_TC_NOTIFY)) return; rw = (t->action & BLK_TC_ACT(BLK_TC_WRITE)) != 0;