mirror of
https://github.com/torvalds/linux.git
synced 2026-11-20 13:03:48 +00:00
block/kyber-iosched: flush per-cpu latency buckets over possible CPUs
kyber_timer_fn() sums the per-cpu latency histograms with
for_each_online_cpu(). A CPU that goes offline mid-interval leaves its
bucket un-flushed; the samples are lost from the current decision and
re-appear (stale) when the CPU is onlined again.
Fixes: 6e25cb01ea ("kyber: implement improved heuristics")
Signed-off-by: Tao Cui <[email protected]>
Reviewed-by: Yu Kuai <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
@@ -275,7 +275,7 @@ static void kyber_timer_fn(struct timer_list *t)
|
||||
bool bad = false;
|
||||
|
||||
/* Sum all of the per-cpu latency histograms. */
|
||||
for_each_online_cpu(cpu) {
|
||||
for_each_possible_cpu(cpu) {
|
||||
struct kyber_cpu_latency *cpu_latency;
|
||||
|
||||
cpu_latency = per_cpu_ptr(kqd->cpu_latency, cpu);
|
||||
|
||||
Reference in New Issue
Block a user