diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2009-06-13 04:27:02 (GMT) |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2009-06-12 12:57:02 (GMT) |
commit | abd41f037e1a64543000ed73b42f616d04d92700 (patch) | |
tree | d9013e66f4d8fc66fc92ce0587f8d126e156b253 /arch/x86/lib/rwlock_64.S | |
parent | ebf9a5a99c1a464afe0b4dfa64416fc8b273bc5c (diff) | |
download | linux-fsl-qoriq-abd41f037e1a64543000ed73b42f616d04d92700.tar.xz |
lguest: fix race in halt code
When the Guest does the LHCALL_HALT hypercall, we go to sleep, expecting
that a timer or the Waker will wake_up_process() us.
But we do it in a stupid way, leaving a classic missing wakeup race.
So split maybe_do_interrupt() into interrupt_pending() and
try_deliver_interrupt(), and check maybe_do_interrupt() and the
"break_out" flag before calling schedule.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'arch/x86/lib/rwlock_64.S')
0 files changed, 0 insertions, 0 deletions