diff options
| author | Rafael J. Wysocki <[email protected]> | 2009-12-13 00:07:30 +0100 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2009-12-13 08:12:46 +0100 |
| commit | 7539a3b3d1f892dd97eaf094134d7de55c13befe (patch) | |
| tree | f49c29135265e452208c5a2e404590f2e0becbc8 /scripts/stackusage | |
| parent | f40542532e96dda5506eb76badea322f2ae4731c (diff) | |
sched: Make wakeup side and atomic variants of completion API irq safe
Alan Stern noticed that all the wakeup side (and atomic) variants of the
completion APIs should be irq safe, but the newly introduced
completion_done() and try_wait_for_completion() aren't. The use of the
irq unsafe variants in IRQ contexts can cause crashes/hangs.
Fix the problem by making them use spin_lock_irqsave() and
spin_lock_irqrestore().
Reported-by: Alan Stern <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Zhang Rui <[email protected]>
Cc: pm list <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: David Chinner <[email protected]>
Cc: Lachlan McIlroy <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions