diff options
| author | Andrew Morton <[email protected]> | 2009-09-19 18:55:44 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2009-09-20 18:00:32 +0000 |
| commit | 89f19f04dc72363d912fd007a399cb10310eff6e (patch) | |
| tree | daa64e5de98a668eed4a2ceeb6ca95c478be4053 /fs/proc/array.c | |
| parent | sched: Re-add lost cpu_allowed check to sched_fair.c::select_task_rq_fair() (diff) | |
| download | kernel-89f19f04dc72363d912fd007a399cb10310eff6e.tar.gz kernel-89f19f04dc72363d912fd007a399cb10310eff6e.zip | |
sched: Fix raciness in runqueue_is_locked()
runqueue_is_locked() is unavoidably racy due to a poor interface design.
It does
cpu = get_cpu()
ret = some_perpcu_thing(cpu);
put_cpu(cpu);
return ret;
Its return value is unreliable.
Fix.
Signed-off-by: Andrew Morton <[email protected]>
Acked-by: Steven Rostedt <[email protected]>
Cc: Peter Zijlstra <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions
