Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp58798pxh; Thu, 7 Apr 2022 13:56:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVND82inDZAkXgiMuJQRgzzsqo6IEwO3UwBMFw0frTlINl++y4LVwbsZk6kvCigI8ZFAvE X-Received: by 2002:a17:90b:390c:b0:1c7:9a94:1797 with SMTP id ob12-20020a17090b390c00b001c79a941797mr18189258pjb.221.1649364980785; Thu, 07 Apr 2022 13:56:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649364980; cv=none; d=google.com; s=arc-20160816; b=GrrsH0K0JPj8qLYYB+AAKBKbk9uompvtsJ/fqUk07bf/VFyCno6yNArPf64vlraiyh ydXitpU4m6AV7N9p4hTBMI9qNBIf6YU9na2phZS6heJtrHjj5J3pNliFQKodIT9W+S/t QnMY3ELiV7Sc1eulyDH3YIQqBE8HD/wsOgtzfFjDXvPkwzXBfL0zamSx7tBbbVdoCxld /POHjD0BwwoqFiWiovE7GNb+/2Zx+Zw3Nwws/ma6cPGkZM938aKtaNaieOF5UPgbLv4K AZHJhE7r5NFNbIQEsopPsJw2I5SBvm7ngrY/9zbMsTviy16zBssA137RKQiPX2eJY/Bw Hj6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=VL34/TicMtQ8fAH3/D1hHnjH2ON0CyRXuN+iiJ3QsTY=; b=I/44N7PWi/kfwT4/yaxZWg6gB0tT401lqZ/dqs9AtPsJq1u9kD+AQGae6Y9b8Cxe4m j3BdwTq2FtknUUBe4sc9TO3UFBjgpEmG4phR9yCHL3aBtnY5qrY2Pp7LvkDppR2R89Fs PLXVwkBOSqVUyH3jJ350Md4BLIHYo8il6F0ispBRoUO0KC5KE1oaEtlkOoE6/kmzc9vy EVuelLaw/b1qi4I3qTdjRmCC8ysTwX4p/niIqGw30o8sa3TMJ74ZLBwQtdbj8FIYThy8 AjNhF8iUuOUCBxNYggumaADazwp1HZE+dnEeWbtBwGMHfbOjlt3Uvad0ceqWr+JirWqc GUIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Q0EHT5pn; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id y3-20020a634b03000000b00382918eae51si19952354pga.290.2022.04.07.13.56.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 13:56:20 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Q0EHT5pn; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 80996280EF9; Thu, 7 Apr 2022 12:59:17 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241124AbiDGGfb (ORCPT + 99 others); Thu, 7 Apr 2022 02:35:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234388AbiDGGf3 (ORCPT ); Thu, 7 Apr 2022 02:35:29 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 558A27C787; Wed, 6 Apr 2022 23:33:30 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E669E61D61; Thu, 7 Apr 2022 06:33:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 47324C385A4; Thu, 7 Apr 2022 06:33:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649313209; bh=sDANlglzy7xVa8qGoxcrgCLEkRlQHE1kd8mStA7Kz0c=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Q0EHT5pnwshFeUDmtz85bKrE/NAtBkY1SyxftEQ+3zRMyhbEqMn331qKHMfCHknO2 /eKy55yCqS3/cnwKSYncJEYLWeMoXNzHjJieYuNYosu3o/3AE5wwf4/dGIlqvIH92E TCQ1lch8dSL5pr3JDvT11dqPE3HME8uWGkNmn678PJNs04mbQLEgmrchE1ldjvAH6b LpMiv8l+x+FiIxY/VlyANEPnLmmcXht4AYdrUwVBQTaPcmxphV4y48hJRAgffJeSGH CJJGAEHjPDfPvvedIGboghdIltzlyaMVa1k9OPT6wE/CoPvQM2NxK5Dyt3GEUPGww0 OwHjJtonlDkLA== Received: by mail-vk1-f173.google.com with SMTP id w67so200196vkw.6; Wed, 06 Apr 2022 23:33:29 -0700 (PDT) X-Gm-Message-State: AOAM532Ct/116C9hukGAyEfGDzBwuNLWc5K66AxzTWdLya9JBiSI8p+3 qAcOGZPzZ6E/SEL3CIbk19lFT5C7rpq3WeGW5EM= X-Received: by 2002:a1f:bd96:0:b0:33f:6185:f723 with SMTP id n144-20020a1fbd96000000b0033f6185f723mr4303359vkf.28.1649313208175; Wed, 06 Apr 2022 23:33:28 -0700 (PDT) MIME-Version: 1.0 References: <20220406141649.728971-1-guoren@kernel.org> In-Reply-To: From: Guo Ren Date: Thu, 7 Apr 2022 14:33:17 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH V3] riscv: patch_text: Fixup last cpu should be master To: Greg KH Cc: Arnd Bergmann , Palmer Dabbelt , linux-arch , Linux Kernel Mailing List , linux-riscv , Guo Ren , Palmer Dabbelt , Masami Hiramatsu , stable@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Thu, Apr 7, 2022 at 2:13 AM Greg KH wrote: > > On Wed, Apr 06, 2022 at 10:16:49PM +0800, guoren@kernel.org wrote: > > From: Guo Ren > > > > These patch_text implementations are using stop_machine_cpuslocked > > infrastructure with atomic cpu_count. The original idea: When the > > master CPU patch_text, the others should wait for it. But current > > implementation is using the first CPU as master, which couldn't > > guarantee the remaining CPUs are waiting. This patch changes the > > last CPU as the master to solve the potential risk. > > > > Signed-off-by: Guo Ren > > Signed-off-by: Guo Ren > > Acked-by: Palmer Dabbelt > > Reviewed-by: Masami Hiramatsu > > Cc: > > --- > > arch/riscv/kernel/patch.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > What commit id does this change fix? Thx for pointing this out, I would follow the rule to add Cc: . > -- Best Regards Guo Ren ML: https://lore.kernel.org/linux-csky/