From: Peter Zijlstra Date: Wed, 2 Oct 2013 09:22:18 +0000 (+0200) Subject: sched/wait: Make the signal_pending() checks consistent X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~40^2~108 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f2a2b60adf368bacd6acd2116c01e32caf936c4;p=pandora-kernel.git sched/wait: Make the signal_pending() checks consistent There's two patterns to check signals in the __wait_event*() macros: if (!signal_pending(current)) { schedule(); continue; } ret = -ERESTARTSYS; break; And the more natural: if (signal_pending(current)) { ret = -ERESTARTSYS; break; } schedule(); Change them all into the latter form. Reviewed-by: Oleg Nesterov Signed-off-by: Peter Zijlstra Link: http://lkml.kernel.org/r/20131002092527.956416254@infradead.org Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed