linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RFC -rt] Alleged fix for CPU-hotplug deadlock
@ 2012-02-21 20:00 Paul E. McKenney
  0 siblings, 0 replies; only message in thread
From: Paul E. McKenney @ 2012-02-21 20:00 UTC (permalink / raw)
  To: rostedt; +Cc: linux-rt-users, linux-kernel

This patch is intended to fix a deadlock seen in -rt.  Untested, might
not even compile.  The intent is to move kthread_stop() outside of
the CPU-hotplug lock, thus preventing deadlocks involving sleeping
spinlocks.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>

diff --git a/kernel/rcutree.c b/kernel/rcutree.c
index 8c26a49..e0d514b 100644
--- a/kernel/rcutree.c
+++ b/kernel/rcutree.c
@@ -2041,8 +2041,7 @@ static int __cpuinit rcu_cpu_notify(struct notifier_block *self,
 		rcu_send_cbs_to_online(&rcu_sched_state);
 		rcu_preempt_send_cbs_to_online();
 		break;
-	case CPU_DEAD:
-	case CPU_DEAD_FROZEN:
+	case CPU_POST_DEAD:
 	case CPU_UP_CANCELED:
 	case CPU_UP_CANCELED_FROZEN:
 		rcu_offline_cpu(cpu);


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-02-21 20:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-21 20:00 [PATCH RFC -rt] Alleged fix for CPU-hotplug deadlock Paul E. McKenney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).