diff options
| author | Lai Jiangshan <[email protected]> | 2014-06-04 16:25:15 +0800 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2014-09-09 06:47:27 +0200 |
| commit | 5cd038f53ed9ec7a17ab7d536a727363080f4210 (patch) | |
| tree | 69516cf3b08e4bf060bd45dd0545646dea724c17 /tools/perf/scripts/python | |
| parent | eb1b4af0a64ac7bb0ee36f579c1c7cefcbc3ac2c (diff) | |
sched: Migrate waking tasks
Current code can fail to migrate a waking task (silently) when TTWU_QUEUE is
enabled.
When a task is waking, it is pending on the wake_list of the rq, but it is not
queued (task->on_rq == 0). In this case, set_cpus_allowed_ptr() and
__migrate_task() will not migrate it because its invisible to them.
This behavior is incorrect, because the task has been already woken, it will be
running on the wrong CPU without correct placement until the next wake-up or
update for cpus_allowed.
To fix this problem, we need to finish the wakeup (so they appear on
the runqueue) before we migrate them.
Reported-by: Sasha Levin <[email protected]>
Reported-by: Jason J. Herne <[email protected]>
Tested-by: Jason J. Herne <[email protected]>
Signed-off-by: Lai Jiangshan <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Linus Torvalds <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions