diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2020-04-13 21:01:50 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-05-07 12:22:34 -0600 |
commit | 9cd3ca7cd32bd73d7ce787ec733221f4b818bb03 (patch) | |
tree | 84f9b1ad2f7a1ce2b80cdc4fe16bae44ce937271 | |
parent | 3c667f3c92f0daa58d7d77cb52de3a1b5f283bc6 (diff) | |
download | blktrace-9cd3ca7cd32bd73d7ce787ec733221f4b818bb03.tar.gz |
blkparse: Allow request tracking on non md/dm devices
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>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r-- | blkparse.c | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -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; |