]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
sched/fair: Fixes for capacity inversion detection
authorQais Yousef <qyousef@layalina.io>
Thu, 12 Jan 2023 12:27:08 +0000 (12:27 +0000)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 13 Jan 2023 10:40:21 +0000 (11:40 +0100)
commitda07d2f9c153e457e845d4dcfdd13568d71d18a4
treed1e735a84b3ab5d88477552881f4ad6d82fe4260
parente26fd28db82899be71b4b949527373d0a6be1e65
sched/fair: Fixes for capacity inversion detection

Traversing the Perf Domains requires rcu_read_lock() to be held and is
conditional on sched_energy_enabled(). Ensure right protections applied.

Also skip capacity inversion detection for our own pd; which was an
error.

Fixes: 44c7b80bffc3 ("sched/fair: Detect capacity inversion")
Reported-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
Signed-off-by: Qais Yousef (Google) <qyousef@layalina.io>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Vincent Guittot <vincent.guittot@linaro.org>
Link: https://lore.kernel.org/r/20230112122708.330667-3-qyousef@layalina.io
kernel/sched/fair.c