Received: by 2002:a4a:311b:0:0:0:0:0 with SMTP id k27-v6csp4779686ooa; Tue, 14 Aug 2018 10:26:05 -0700 (PDT) X-Google-Smtp-Source: AA+uWPw0M2I5p/NJ2hwBDZncTfwyoN0j0zFg0qaDmNAXDwiIW8QGsyGoco7pEIDL08boF1fUzQiZ X-Received: by 2002:a62:c288:: with SMTP id w8-v6mr24155660pfk.92.1534267565103; Tue, 14 Aug 2018 10:26:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534267565; cv=none; d=google.com; s=arc-20160816; b=a5EmlYy6Bwd0qaHcMnFDB9r8CKs73kUSOzusUTYxgI8AOR9mtbKtExXGWiJc7nCubE WxDWcuwTC/FcCDN3NfDGA9yaIG6cMBSss7fbuHtY3ohzKnVd6FSnBPBx/DQZSwU4+pQl sg1JcfA85pZtPujn+xLrHGe7IEc4JELhEAJLqIuyqOH/SA77MkkyyAjjyYIOvhqwrm41 bNjno+L5FvpoW5AoyRbozYoIKTsHFqAz9DTy/12B8kc3evHzPl5BZNqUgksBcno/mxDU llSEVpo8vGo+6RZynJk7qkOT+azLB5EY1XccamC19yx6FAWxtc3X/7ukINsjGpZsvlqi +V3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=vndNVMQV6Z+JXtlXx2JYF+HSBX3VgzNYka/z1h9QRY4=; b=VlkxDWCB7XGivTkoaNfBKe6HZyNi2c0vw80Y3ScOpd/m7zsoK2pgAh8Z0JPFf35M5V NuP66oBW/dvaCbHjXyBAYJ+SU9ikhkn9Qi260dQckFdaeK6RXjJ9A6Fvc3la8B8UxhmL 2alSJKzdnTo44F7GsQfq/M8DqvPnytEij38Q//hIpGX/WD02R2IPr2bF4jwT2lt2QyLx TlXzPM1zgfp5avTx7rolEvAF+XRPlBMPACVi5/0e0Svdx4v9UJnqaIXh575N8TZd6Krd j0IgIVEbP/2FZpQmiiaagaAiLqi2fmP/sW+dZIFEo/lB+OHkA0o4Da4WeH+4eoE+2reV sTKg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e6-v6si12717160plk.441.2018.08.14.10.25.49; Tue, 14 Aug 2018 10:26:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387948AbeHNUMi (ORCPT + 99 others); Tue, 14 Aug 2018 16:12:38 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:51364 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387747AbeHNUMi (ORCPT ); Tue, 14 Aug 2018 16:12:38 -0400 Received: from localhost (unknown [194.244.16.108]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 2FEF2D1D; Tue, 14 Aug 2018 17:24:32 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Thomas Gleixner , Konrad Rzeszutek Wilk , Ingo Molnar Subject: [PATCH 4.18 17/79] cpu/hotplug: Make bringup/teardown of smp threads symmetric Date: Tue, 14 Aug 2018 19:16:36 +0200 Message-Id: <20180814171337.466191138@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180814171336.799314117@linuxfoundation.org> References: <20180814171336.799314117@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ 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 Acked-by: Ingo Molnar Signed-off-by: Greg Kroah-Hartman --- 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",