Searched +hist:2953 +hist:ef24 (Results 1 - 1 of 1) sorted by relevance

/linux-master/include/linux/
H A Dwait.hdiff 2953ef24 Wed Oct 02 03:22:19 MDT 2013 Peter Zijlstra <peterz@infradead.org> 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 <oleg@redhat.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20131002092528.028892896@infradead.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
diff 2953ef24 Wed Oct 02 03:22:19 MDT 2013 Peter Zijlstra <peterz@infradead.org> 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 <oleg@redhat.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20131002092528.028892896@infradead.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>

Completed in 205 milliseconds