aboutsummaryrefslogtreecommitdiff
path: root/lib/cpu-notifier-error-inject.c
diff options
context:
space:
mode:
authorPeter Zijlstra <[email protected]>2013-10-02 11:22:19 +0200
committerIngo Molnar <[email protected]>2013-10-04 10:14:44 +0200
commit2953ef246b058989657e1e77b36b67566ac06f7b (patch)
treea63c8aff38d86f4a7db7eb4e5111dc46076cc268 /lib/cpu-notifier-error-inject.c
parent2f2a2b60adf368bacd6acd2116c01e32caf936c4 (diff)
sched/wait: Change timeout logic
Commit 4c663cf ("wait: fix false timeouts when using wait_event_timeout()") introduced an additional condition check after a timeout but there's a few issues; - it forgot one site - it put the check after the main loop; not at the actual timeout check. Cure both; by wrapping the condition (as suggested by Oleg), this avoids double evaluation of 'condition' which could be quite big. Reviewed-by: Oleg Nesterov <[email protected]> Signed-off-by: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/cpu-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions