* [PATCH v2 2/4] blkparse: Allow request tracking on non md/dm devices
@ 2020-04-13 19:01 Andreas Gruenbacher
0 siblings, 0 replies; only message in thread
From: Andreas Gruenbacher @ 2020-04-13 19:01 UTC (permalink / raw)
To: linux-btrace
Fix queue to completion tracking on devices other than md/dm: without this fix,
enabling tracking with the -t option on a non-md/dm device leads to "complete
not found" errors.
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
---
blkparse.c | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/blkparse.c b/blkparse.c
index 0054d4f..c31a5c2 100644
--- a/blkparse.c
+++ b/blkparse.c
@@ -1027,13 +1027,6 @@ static void log_track_getrq(struct per_dev_info *pdi, struct blk_io_trace *t)
iot->allocation_time = t->time;
}
-static inline int is_remapper(struct per_dev_info *pdi)
-{
- int major = MAJOR(pdi->dev);
-
- return (major == 253 || major == 9);
-}
-
/*
* for md/dm setups, the interesting cycle is Q -> C. So track queueing
* time here, as dispatch time
@@ -1044,8 +1037,6 @@ static void log_track_queue(struct per_dev_info *pdi, struct blk_io_trace *t)
if (!track_ios)
return;
- if (!is_remapper(pdi))
- return;
iot = find_track(pdi, t->pid, t->sector);
iot->dispatch_time = t->time;
--
2.25.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-04-13 19:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-13 19:01 [PATCH v2 2/4] blkparse: Allow request tracking on non md/dm devices Andreas Gruenbacher
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).