summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@suse.de>2005-09-20 09:12:34 +0200
committerJens Axboe <axboe@suse.de>2005-09-20 09:12:34 +0200
commita3983763165b2c002a6233212b8ab24c1964535b (patch)
treea48cae21a43d475e6d90028aaf62923d002068f1
parent0aa8a62d63360d87de8c4402fb1e33d1b3b07985 (diff)
downloadblktrace-a3983763165b2c002a6233212b8ab24c1964535b.tar.gz
blktrace-a3983763165b2c002a6233212b8ab24c1964535b.tar.bz2
[PATCH] blkparse: account skips for file reads as well
-rw-r--r--blkparse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/blkparse.c b/blkparse.c
index 9076631..b586cb5 100644
--- a/blkparse.c
+++ b/blkparse.c
@@ -1149,8 +1149,8 @@ static void show_entries_rb(int piped)
* on SMP systems. to prevent stalling on lost events,
* only allow an event to us a few times
*/
- if (piped && bit->sequence != (pdi->last_sequence + 1)) {
- if (t->skipped < 5) {
+ if (bit->sequence != (pdi->last_sequence + 1)) {
+ if (piped && t->skipped < 5) {
t->skipped++;
break;
} else {