aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorLuca Mariotti <[email protected]>2021-06-19 14:09:43 +0000
committerJens Axboe <[email protected]>2021-06-21 21:03:41 +0000
commite03f2ab78a4a673e4af23c3b855591c48b9de4d7 (patch)
treec1fec038b5986fd5fbb4e06646a22e25805e0917 /lib/debugobjects.c
parentblock, bfq: let also stably merged queues enjoy weight raising (diff)
downloadkernel-e03f2ab78a4a673e4af23c3b855591c48b9de4d7.tar.gz
kernel-e03f2ab78a4a673e4af23c3b855591c48b9de4d7.zip
block, bfq: fix delayed stable merge check
When attempting to schedule a merge of a given bfq_queue with the currently in-service bfq_queue or with a cooperating bfq_queue among the scheduled bfq_queues, delayed stable merge is checked for rotational or non-queueing devs. For this stable merge to be performed, some conditions must be met. If the current bfq_queue underwent some split from some merged bfq_queue, one of these conditions is that two hundred milliseconds must elapse from split, otherwise this condition is always met. Unfortunately, by mistake, time_is_after_jiffies() was written instead of time_is_before_jiffies() for this check, verifying that less than two hundred milliseconds have elapsed instead of verifying that at least two hundred milliseconds have elapsed. Fix this issue by replacing time_is_after_jiffies() with time_is_before_jiffies(). Signed-off-by: Luca Mariotti <[email protected]> Signed-off-by: Paolo Valente <[email protected]> Signed-off-by: Pietro Pedroni <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions