From: Paul E. McKenney Date: Thu, 23 Oct 2014 18:41:22 +0000 (-0700) Subject: signal: Exit RCU read-side critical section on each pass through loop X-Git-Tag: omap-for-v3.19/fixes-rc1~168^2^2^5~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eca1a08986f622c11b75b3b44d561a1f901c9cec;p=pandora-kernel.git signal: Exit RCU read-side critical section on each pass through loop The kill_pid_info() can potentially loop indefinitely if tasks are created and deleted sufficiently quickly, and if this happens, this function will remain in a single RCU read-side critical section indefinitely. This commit therefore exits the RCU read-side critical section on each pass through the loop. Because a race must happen to retry the loop, this should have no performance impact in the common case. Reported-by: Dave Jones Signed-off-by: Paul E. McKenney Acked-by: Oleg Nesterov Reviewed-by: Pranith Kumar --- Reading git-diff-tree failed