]> git.baikalelectronics.ru Git - kernel.git/commitdiff
block, bfq: increase time window for waker detection
authorPaolo Valente <paolo.valente@linaro.org>
Fri, 22 Jan 2021 18:19:45 +0000 (19:19 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Jan 2021 01:18:24 +0000 (18:18 -0700)
Tests on slower machines showed current window to be way too
small. This commit increases it.

Tested-by: Jan Kara <jack@suse.cz>
Signed-off-by: Paolo Valente <paolo.valente@linaro.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bfq-iosched.c

index fdc5e163b2fedac1f3f3d18261501b577862978d..43e2c39cf7b5c2bc608f3831c147fc2538543b6d 100644 (file)
@@ -1931,7 +1931,7 @@ static void bfq_add_request(struct request *rq)
                if (bfqd->last_completed_rq_bfqq &&
                    !bfq_bfqq_has_short_ttime(bfqq) &&
                    ktime_get_ns() - bfqd->last_completion <
-                   200 * NSEC_PER_USEC) {
+                   4 * NSEC_PER_MSEC) {
                        if (bfqd->last_completed_rq_bfqq != bfqq &&
                            bfqd->last_completed_rq_bfqq !=
                            bfqq->waker_bfqq) {