Skip to content

Commit

Permalink
blk-iolatency: don't change the latency window
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Josef Bacik authored and Jens Axboe committed Jul 16, 2018
1 parent f635210 commit d607eef
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions block/blk-iolatency.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d607eef

Please sign in to comment.