From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751767Ab2JGRGA (ORCPT ); Sun, 7 Oct 2012 13:06:00 -0400 Received: from e28smtp07.in.ibm.com ([122.248.162.7]:60690 "EHLO e28smtp07.in.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750856Ab2JGRFw (ORCPT ); Sun, 7 Oct 2012 13:05:52 -0400 Message-ID: <5071B63D.4020300@linux.vnet.ibm.com> Date: Sun, 07 Oct 2012 22:35:01 +0530 From: "Srivatsa S. Bhat" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120828 Thunderbird/15.0 MIME-Version: 1.0 To: "Kirill A. Shutemov" CC: "Paul E. McKenney" , linux-kernel@vger.kernel.org, Dipankar Sarma , Thomas Gleixner , Andrew Morton , Steffen Klassert , linux-crypto@vger.kernel.org, "Srivatsa S. Bhat" Subject: Re: Deadlock on poweroff References: <20121007024711.GA21403@shutemov.name> <20121007160311.GE2485@linux.vnet.ibm.com> <20121007165012.GA23535@shutemov.name> In-Reply-To: <20121007165012.GA23535@shutemov.name> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit x-cbid: 12100717-8878-0000-0000-000004482314 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/07/2012 10:20 PM, Kirill A. Shutemov wrote: > On Sun, Oct 07, 2012 at 09:03:11AM -0700, Paul E. McKenney wrote: >> On Sun, Oct 07, 2012 at 05:47:11AM +0300, Kirill A. Shutemov wrote: >>> 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? >> >> This is a new one for me. Does the following (very lightly tested) >> patch help? > > Works for me. Thanks. > Could you share the patch please? Looks like it didn't hit the mailing lists.. Regards, Srivatsa S. Bhat