From ff045fe73d4c1f84155e15ff8b228ee65f82373c Mon Sep 17 00:00:00 2001 From: Jan Kara Date: Thu, 4 Apr 2013 06:18:28 -0400 Subject: 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 --- iowatcher/blkparse.c | 5 +++++ 1 file changed, 5 insertions(+) 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; -- cgit v1.2.3