public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Deadlock on poweroff
@ 2012-10-07  2:47 Kirill A. Shutemov
       [not found] ` <20121007160311.GE2485@linux.vnet.ibm.com>
  0 siblings, 1 reply; 8+ messages in thread
From: Kirill A. Shutemov @ 2012-10-07  2:47 UTC (permalink / raw)
  To: Paul E. McKenney, linux-kernel
  Cc: Dipankar Sarma, Thomas Gleixner, Andrew Morton, Steffen Klassert,
	".linux-crypto"

Hi Paul and all,

With commit 755609a9087fa983f567dc5452b2fa7b089b591f I've got deadlock on
poweroff.

It guess it happens because of race for cpu_hotplug.lock:

	CPU A					CPU B
disable_nonboot_cpus()
_cpu_down()
cpu_hotplug_begin()
 mutex_lock(&cpu_hotplug.lock);
__cpu_notify()
padata_cpu_callback()
__padata_remove_cpu()
padata_replace()
synchronize_rcu()
					rcu_gp_kthread()
					get_online_cpus();
					mutex_lock(&cpu_hotplug.lock);

Have you seen the issue before?

-- 
 Kirill A. Shutemov

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-10-08  5:29 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-07  2:47 Deadlock on poweroff Kirill A. Shutemov
     [not found] ` <20121007160311.GE2485@linux.vnet.ibm.com>
2012-10-07 16:50   ` Kirill A. Shutemov
2012-10-07 17:05     ` Srivatsa S. Bhat
2012-10-07 17:11       ` Kirill A. Shutemov
2012-10-07 17:16         ` Srivatsa S. Bhat
2012-10-07 21:08           ` Paul E. McKenney
2012-10-08  4:41     ` Paul E. McKenney
2012-10-08  5:30       ` Kirill A. Shutemov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox