From: Jan Kara Date: Thu, 4 Apr 2013 10:18:28 +0000 (-0400) Subject: iowatcher: Handle REQUEUE events X-Git-Tag: blktrace-1.1.0~2^2~13 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=ff045fe73d4c1f84155e15ff8b228ee65f82373c;p=blktrace.git iowatcher: Handle REQUEUE events When requeue event happens we have to decrease number of in-flight requests. Otherwise they drift away. Signed-off-by: Jan Kara Signed-off-by: Chris Mason --- diff --git a/iowatcher/blkparse.c b/iowatcher/blkparse.c index c9ae3e7..43eb269 100644 --- a/iowatcher/blkparse.c +++ b/iowatcher/blkparse.c @@ -1052,6 +1052,11 @@ void add_pending_io(struct trace *trace, struct graph_line_data *gld) hash_queued_io(trace->io); return; } + if (action == __BLK_TA_REQUEUE) { + if (ios_in_flight > 0) + ios_in_flight--; + return; + } if (action != __BLK_TA_ISSUE) return;