mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
block, bfq: increase time window for waker detection
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>
This commit is contained in:
committed by
Jens Axboe
parent
d4fc3640ff
commit
ab1fb47e33
@@ -1931,7 +1931,7 @@ static void bfq_add_request(struct request *rq)
|
|||||||
if (bfqd->last_completed_rq_bfqq &&
|
if (bfqd->last_completed_rq_bfqq &&
|
||||||
!bfq_bfqq_has_short_ttime(bfqq) &&
|
!bfq_bfqq_has_short_ttime(bfqq) &&
|
||||||
ktime_get_ns() - bfqd->last_completion <
|
ktime_get_ns() - bfqd->last_completion <
|
||||||
200 * NSEC_PER_USEC) {
|
4 * NSEC_PER_MSEC) {
|
||||||
if (bfqd->last_completed_rq_bfqq != bfqq &&
|
if (bfqd->last_completed_rq_bfqq != bfqq &&
|
||||||
bfqd->last_completed_rq_bfqq !=
|
bfqd->last_completed_rq_bfqq !=
|
||||||
bfqq->waker_bfqq) {
|
bfqq->waker_bfqq) {
|
||||||
|
Reference in New Issue
Block a user