]> err.no Git - linux-2.6/commit
[PATCH] rcu_torture_lock deadlock fix
authorIngo Molnar <mingo@elte.hu>
Wed, 25 Jan 2006 18:50:12 +0000 (19:50 +0100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 31 Jan 2006 19:30:18 +0000 (11:30 -0800)
commitadac1665234dd966990af846eccd20b7f4923279
tree22c542365e34db4dc5c29d59245dd6d2cbc1351d
parentf6bc2666ed6696c40ef055e88ffef0b7657437a4
[PATCH] rcu_torture_lock deadlock fix

rcu_torture_lock is used in a softirq-unsafe manner, but it is also
taken by rcu_torture_cb(), which may execute in softirq-context,
resulting in potential deadlocks.

The fix is to acquire rcu_torture_lock in a softirq-safe manner.  With
this fix applied, the rcu-torture code passes validation.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Acked-by: Paul E. McKenney <paulmck@us.ibm.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/rcutorture.c