diff options
author | Josef Bacik <jbacik@fb.com> | 2018-07-16 12:12:22 -0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-07-16 10:15:17 -0600 |
commit | d607eefa3b55c7b8cd9902e9209fc1235f88ccd9 (patch) | |
tree | 74c55cc45f8bc35b71a375f4320b556f4e3d1724 /block/blk-iolatency.c | |
parent | f6352103d2e0ad2d2066725eb19bfdfb8763239b (diff) | |
download | linux-stable-d607eefa3b55c7b8cd9902e9209fc1235f88ccd9.tar.gz linux-stable-d607eefa3b55c7b8cd9902e9209fc1235f88ccd9.tar.bz2 linux-stable-d607eefa3b55c7b8cd9902e9209fc1235f88ccd9.zip |
blk-iolatency: don't change the latency window
Early versions of these patches had us waiting for seconds at a time
during submission, so we had to adjust the timing window we monitored
for latency. Now we don't do things like that so this is unnecessary
code.
Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-iolatency.c')
-rw-r--r-- | block/blk-iolatency.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/block/blk-iolatency.c b/block/blk-iolatency.c index b59e5451680b..893f888eebb1 100644 --- a/block/blk-iolatency.c +++ b/block/blk-iolatency.c @@ -468,16 +468,6 @@ static void iolatency_check_latencies(struct iolatency_grp *iolat, u64 now) } preempt_enable(); - /* - * Our average exceeded our window, scale up our window so we are more - * accurate, but not more than the global timer. - */ - if (stat.mean > iolat->cur_win_nsec) { - iolat->cur_win_nsec <<= 1; - iolat->cur_win_nsec = - max_t(u64, iolat->cur_win_nsec, NSEC_PER_SEC); - } - parent = blkg_to_lat(blkg->parent); if (!parent) return; |