Return-Path: Received: from mail.linutronix.de (146.0.238.70:993) by crypto-ml.lab.linutronix.de with IMAP4-SSL for ; 15 Jun 2018 19:03:35 -0000 Received: from aserp2130.oracle.com ([141.146.126.79]) by Galois.linutronix.de with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fTu0U-0005cB-J8 for speck@linutronix.de; Fri, 15 Jun 2018 21:03:35 +0200 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w5FIwX9S191942 for ; Fri, 15 Jun 2018 19:03:27 GMT Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp2130.oracle.com with ESMTP id 2jk0xr241v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 15 Jun 2018 19:03:27 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w5FJ3R31013476 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 15 Jun 2018 19:03:27 GMT Received: from abhmp0009.oracle.com (abhmp0009.oracle.com [141.146.116.15]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w5FJ3RL5027953 for ; Fri, 15 Jun 2018 19:03:27 GMT Date: Fri, 15 Jun 2018 15:03:26 -0400 From: Konrad Rzeszutek Wilk Subject: [MODERATED] Re: [patch V3 03/12] cpu/hotplug: Make bringup/teardown of smp threads symmetric Message-ID: <20180615190326.GK13695@char.us.oracle.com> References: <20180615162801.748896789@linutronix.de> <20180615162947.676618053@linutronix.de> MIME-Version: 1.0 In-Reply-To: <20180615162947.676618053@linutronix.de> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: speck@linutronix.de List-ID: On Fri, Jun 15, 2018 at 06:28:04PM +0200, speck for Thomas Gleixner wrote: > Subject: [patch V3 03/12] cpu/hotplug: Make bringup/teardown of smp threads symmetric > From: Thomas Gleixner > > The asymmetry caused a warning to trigger if the bootup was stopped in state > CPUHP_AP_ONLINE_IDLE. The warning no longer triggers as kthread_park() can > now be invoked on already or still parked threads. But there is still no > reason to have this be asymmetric. > > Signed-off-by: Thomas Gleixner Reviewed-by: Konrad Rzeszutek Wilk Thank you! > --- > kernel/cpu.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > --- a/kernel/cpu.c > +++ b/kernel/cpu.c > @@ -754,7 +754,6 @@ static int takedown_cpu(unsigned int cpu > > /* Park the smpboot threads */ > kthread_park(per_cpu_ptr(&cpuhp_state, cpu)->thread); > - smpboot_park_threads(cpu); > > /* > * Prevent irq alloc/free while the dying cpu reorganizes the > @@ -1332,7 +1331,7 @@ static struct cpuhp_step cpuhp_hp_states > [CPUHP_AP_SMPBOOT_THREADS] = { > .name = "smpboot/threads:online", > .startup.single = smpboot_unpark_threads, > - .teardown.single = NULL, > + .teardown.single = smpboot_park_threads, > }, > [CPUHP_AP_IRQ_AFFINITY_ONLINE] = { > .name = "irq/affinity:online", >