Skip to content

Commit d607eef

Browse files
Josef Bacikaxboe
authored andcommitted
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>
1 parent f635210 commit d607eef

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

block/blk-iolatency.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -468,16 +468,6 @@ static void iolatency_check_latencies(struct iolatency_grp *iolat, u64 now)
468468
}
469469
preempt_enable();
470470

471-
/*
472-
* Our average exceeded our window, scale up our window so we are more
473-
* accurate, but not more than the global timer.
474-
*/
475-
if (stat.mean > iolat->cur_win_nsec) {
476-
iolat->cur_win_nsec <<= 1;
477-
iolat->cur_win_nsec =
478-
max_t(u64, iolat->cur_win_nsec, NSEC_PER_SEC);
479-
}
480-
481471
parent = blkg_to_lat(blkg->parent);
482472
if (!parent)
483473
return;

0 commit comments

Comments
 (0)