From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752392AbdIEHPn (ORCPT ); Tue, 5 Sep 2017 03:15:43 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:44005 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752380AbdIEHPm (ORCPT ); Tue, 5 Sep 2017 03:15:42 -0400 Date: Tue, 5 Sep 2017 09:15:40 +0200 (CEST) From: Thomas Gleixner To: "Huang, Ying" cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH] IRQ, cpu-hotplug: Fix a race between CPU hotplug and IRQ desc alloc/free In-Reply-To: <87fuc2yquq.fsf@yhuang-mobile.sh.intel.com> Message-ID: References: <20170904085308.17637-1-ying.huang@intel.com> <87fuc2yquq.fsf@yhuang-mobile.sh.intel.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 5 Sep 2017, Huang, Ying wrote: > Thomas Gleixner writes: > > + /* Interrupts are moved away from the dying cpu, reenable alloc/free */ > > + irq_unlock_sparse(); > > + > > I don't understand this. It appears that irq_migrate_all_off_this_cpu() > is called in take_cpu_down() which has sparse_irq_lock held already. You're right. I was looking at the wrong place. Thanks, tglx