diff options
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-iolatency.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/block/blk-iolatency.c b/block/blk-iolatency.c index 893f888eebb1..bb59b2929e0d 100644 --- a/block/blk-iolatency.c +++ b/block/blk-iolatency.c @@ -425,6 +425,12 @@ static void iolatency_record_time(struct iolatency_grp *iolat, u64 start = bio_issue_time(issue); u64 req_time; + /* + * Have to do this so we are truncated to the correct time that our + * issue is truncated to. + */ + now = __bio_issue_time(now); + if (now <= start) return; |