Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4543080imw; Tue, 19 Jul 2022 08:31:08 -0700 (PDT) X-Google-Smtp-Source: AGRyM1umakmqGrRjBgabPONXYvqnb1HoLfk791UgkPbkZAtGy0ticTi3VqwCBOeuWqX7t3KEOgHu X-Received: by 2002:a17:907:2722:b0:72b:6a93:bf9a with SMTP id d2-20020a170907272200b0072b6a93bf9amr29521618ejl.424.1658244668642; Tue, 19 Jul 2022 08:31:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658244668; cv=none; d=google.com; s=arc-20160816; b=RClxSAxRqmEuWcGKHHYo9CDkB6Y7zh7fhjeOnpVKDnUXQIrP6A9GLQj4EIqOnBxGDD M6d6kwFOKbfr0Ip2lKrwIcgeaB/ZaTVgEPPDyxa1CxjyuSBJbl6rekILgks0Cvr3nsAY aPMv0vaanuJXz4xkuryxnCrKM645Lgu/opHYobIBMbWlcLQphv2FhIS+z0tnX2X8QIiQ VDfaxGQAGsmSKMDME9E3pnptiptoOTCdRZDq83A6EGsKRrwDmwUraZ8k6ZftGD2G4rgJ BZGoh1YBPFLUXc5bMuW4fsbkrgSp3BmR8eZpXALxBmDqDvqP7ZX86Va+sFgX0eH9JzJV RNCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=UbgLtHKRYJRRPICj7dQDhNkD4S1y/0PvJsqR4JfvyZk=; b=It9z8H4jSK8weVXQY84ynyUmHaaBcejpq4yZgFYIoVO790WZRCD+McAfgHMhhEz32/ QTsDVm5PbFyHo7oEDvIldi1/fy3Jl8ZXfnUQEBlW4NtHILyhzsRHm1qH5UpotGc0xvTt oQ4d9nl29jdKrzFA9vsZMggBRCJHbYpXn6pUs+lL0Eiyj9z77n9JTFwXZIqpxbtYX5gD ndP3qusBMp2jd7eniEBkqAkB4AW37e+IfcTaAN2r5rtLjnlOZd9/epqasG9ooqzkac89 U0bsVLqQvMytPq56kDMLZRjxoId8QIQwIwHSI/7kptX2S0SH0uVCdCqn0q5+cld0Mc1x Du8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EKV4d28L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g4-20020a1709067c4400b00726c8adb7efsi16588900ejp.224.2022.07.19.08.30.43; Tue, 19 Jul 2022 08:31:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EKV4d28L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236561AbiGSPMO (ORCPT + 99 others); Tue, 19 Jul 2022 11:12:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229876AbiGSPMM (ORCPT ); Tue, 19 Jul 2022 11:12:12 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C3EC752E6C for ; Tue, 19 Jul 2022 08:12:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1658243529; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=UbgLtHKRYJRRPICj7dQDhNkD4S1y/0PvJsqR4JfvyZk=; b=EKV4d28LI46JqofCbEEmYUVF6P9Z1wqPsVxmO9mW6eBpo9vTHu0I7XHr7KjcxcRpsuUh27 COKqBq3OPd0RDtCQK4JiQYeXB2Hd6NeZSQMK74vE8qU6Fxt3+cUK/fnNPbr7XhHso3TXz3 Qfn5iPmgbaiWOhqgMYZIs2/01q4F0hs= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-241-74MxXds0OM-pw1dubqokLQ-1; Tue, 19 Jul 2022 11:12:07 -0400 X-MC-Unique: 74MxXds0OM-pw1dubqokLQ-1 Received: by mail-wm1-f70.google.com with SMTP id r10-20020a05600c284a00b003a2ff6c9d6aso9217648wmb.4 for ; Tue, 19 Jul 2022 08:12:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=UbgLtHKRYJRRPICj7dQDhNkD4S1y/0PvJsqR4JfvyZk=; b=fLX+O0NNzb6/PC+CB92agNmJAh2a61GoJ/khoVuJu+Q2jJfJRaFU3e6pDfYZ8uYbLd RHkcauJpVsTVOiNdUvMsRvEksYIgq0sA/jd560z6b/stl5kIhdgs/d6HyO2sUsRfxYda uEwLTYqtH/Lu/Pxo4u7z/qZq4AzbqHWfQHjaEM25anpPkj0j40O+DVGVZMf6lpigwKot pDfUOc3ROcSv0jVwgzqhYLC5cOoFk40iJOHgpboook3jGyXS3XgZXpVUvvsk+7Vpnwsj vvFx3s+4bI78+4OqNEb0pbLftyLZ18jN6djyqwN2YRMW6VynKuDtnSM7JGXTG1y3wZ74 A2lQ== X-Gm-Message-State: AJIora/5k5xqnr9lgn02C5LVHLc8aFWdvLWR2T66P/tnszKCB/tnQK58 kj6YSUv0/6UinmmFuWrmIyZwf5WV8awZEiCevMMEX7Z4ueuB3lv4kop6e8EXbbnaNo3nSTqMeZ/ usOnZav0dNwAwf/evFCS8L5+A X-Received: by 2002:a05:600c:2196:b0:3a2:feff:4c42 with SMTP id e22-20020a05600c219600b003a2feff4c42mr26971944wme.163.1658243525642; Tue, 19 Jul 2022 08:12:05 -0700 (PDT) X-Received: by 2002:a05:600c:2196:b0:3a2:feff:4c42 with SMTP id e22-20020a05600c219600b003a2feff4c42mr26971925wme.163.1658243525487; Tue, 19 Jul 2022 08:12:05 -0700 (PDT) Received: from vschneid.remote.csb ([185.11.37.247]) by smtp.gmail.com with ESMTPSA id b14-20020a5d40ce000000b0021a56cda047sm13692256wrq.60.2022.07.19.08.12.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Jul 2022 08:12:04 -0700 (PDT) From: Valentin Schneider To: Vincent Donnefort , peterz@infradead.org, tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, regressions@leemhuis.info, kernel-team@android.com, Vincent Donnefort , Derek Dolney Subject: Re: [PATCH v4] cpu/hotplug: Do not bail-out in DYING/STARTING sections In-Reply-To: <20220704131346.2650163-1-vdonnefort@google.com> References: <20220704131346.2650163-1-vdonnefort@google.com> Date: Tue, 19 Jul 2022 16:12:03 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/07/22 14:13, Vincent Donnefort wrote: > +static int _cpuhp_invoke_callback_range(bool bringup, > + unsigned int cpu, > + struct cpuhp_cpu_state *st, > + enum cpuhp_state target, > + bool nofail) [...] > + if (nofail) { > + pr_warn("CPU %u %s state %s (%d) failed (%d)\n", > + cpu, bringup ? "UP" : "DOWN", > + cpuhp_get_step(st->state)->name, > + st->state, err); > + ret = -1; On a single failure we'll get two warns (WARN_ON_ONCE() + pr_warn(), and then subsequently just the pr_warn()), is that intended? Also, why not have ret = err here? > + } else { > + ret = err; > break; > + } > } > > - return err; > + return ret; > +static inline void cpuhp_invoke_callback_range_nofail(bool bringup, > + unsigned int cpu, > + struct cpuhp_cpu_state *st, > + enum cpuhp_state target) > +{ > + WARN_ON_ONCE(_cpuhp_invoke_callback_range(bringup, cpu, st, target, true)); > } >