diff options
author | Vincent Guittot <vincent.guittot@linaro.org> | 2022-08-25 14:27:23 +0200 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2022-09-15 16:13:51 +0200 |
commit | b0defa7ae03ecf91b8bfd10ede430cff12fcbd06 (patch) | |
tree | d590d068e868d7ce347e237d7e04095a65193388 /kernel/sched/core.c | |
parent | fb04563d1cae6f361892b4a339ad92100b1eb0d0 (diff) |
sched/fair: Make sure to try to detach at least one movable task
During load balance, we try at most env->loop_max time to move a task.
But it can happen that the loop_max LRU tasks (ie tail of
the cfs_tasks list) can't be moved to dst_cpu because of affinity.
In this case, loop in the list until we found at least one.
The maximum of detached tasks remained the same as before.
Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20220825122726.20819-2-vincent.guittot@linaro.org
Diffstat (limited to 'kernel/sched/core.c')
0 files changed, 0 insertions, 0 deletions