[PATCH] blktrace: fix hang and no output if first sequence is not expected
authorJens Axboe <axboe@suse.de>
Fri, 27 Jan 2006 18:42:30 +0000 (19:42 +0100)
committerJens Axboe <axboe@suse.de>
Fri, 27 Jan 2006 18:42:30 +0000 (19:42 +0100)
blkparse.c

index 832ae0e6e9da214b9d3edb73b3c3585e08219e02..0d400e09c8d3715f0fe30c86111b5344100c721f 100644 (file)
@@ -1622,6 +1622,8 @@ static int check_sequence(struct per_dev_info *pdi, struct trace *t, int force)
                 */
                if (bit->sequence == 1)
                        return 0;
+               if (bit->sequence == smallest_seq_read)
+                       return 0;
 
                return check_cpu_map(pdi);
        }