Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1296591pxb; Wed, 6 Apr 2022 14:06:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPRRUuqbzs0jxN4F5o9/vd9lToSWz0xdzw/J3pBTaaeROKcxhV2h2lKr88gjQ7k2j5yCcY X-Received: by 2002:a63:9dc6:0:b0:398:6e02:c105 with SMTP id i189-20020a639dc6000000b003986e02c105mr8763127pgd.495.1649279211888; Wed, 06 Apr 2022 14:06:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649279211; cv=none; d=google.com; s=arc-20160816; b=nrEORliiSrM6zLgSlzhczw3nmxhGooSaBybdK0IGFBuXHP0ibWFfGeXyzpoaQSMiCC 3eCfSY/aFVVpXWv7OITGyS+MCfWchxpmHFKLRaozUbx8vG7D5Ee/iiRRNrLoPmIDsBmv LYnQLSPEdmf+tkP4JAAN0b0n2BgTvLQfar7M2vJCo5c0wz9LWOdc0no+VC7Tjrr47V53 Eu0iSVyUTGwHG+Nsc/JbkmNS6xBDBP1m4xxt+CtO3dXL8yjgDvDt/dRVXqpyWbnbCY0R Xc8co6QTIeYN+OF4KeoY4CPkpsW3/bxyONKBvcXQkwsVUqE0pV09PdJag0UWSWfdR66O v5ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=UVO0NxYd+ZZYLpoTlRoQFl+7eqY6EqZHcKjdJEv+Ewc=; b=EMANPebVqFprA39lxJkB2hu9QSYyCDoWAwvHav58Go7vbkRZ4HbF/+kgyHG6wGw5RH 2+1Jt5QK0QWIsWo/gogkzfIL0G6u7uef3YhT9/jRrg2XrfD/O4Od/RqGapgN2czxx3i0 a12zuKr7zoQ4e3NuSYHMRpdBOJCrZkxHomVCwyOji9KFdEDnhNq/P1Jk/6cAcdigkwJQ iTE3OLWzxKkz8ib+MwQKFNuU52VAJdVyK23t+l2810lgjm29XcAdnrZdy30M+PMIn//9 61q3lToih+VqdzH9Wk39vUB2OSGOXTVDeCE0dyBdQYH56s7x0fos6YoJ1V4HqNrz6kpd M81w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=nVLUe7kj; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i62-20020a628741000000b004fa3a8dffefsi16038653pfe.166.2022.04.06.14.06.37; Wed, 06 Apr 2022 14:06:51 -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=@linuxfoundation.org header.s=korg header.b=nVLUe7kj; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233109AbiDFULg (ORCPT + 99 others); Wed, 6 Apr 2022 16:11:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232429AbiDFULI (ORCPT ); Wed, 6 Apr 2022 16:11:08 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E410652FA; Wed, 6 Apr 2022 11:13:42 -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 ams.source.kernel.org (Postfix) with ESMTPS id 317BEB8252B; Wed, 6 Apr 2022 18:13:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 555C0C385A3; Wed, 6 Apr 2022 18:13:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649268819; bh=QMVfExX2amMvHMtMH2GP6BV4ahQ74qFyqqVQ9KVADKw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nVLUe7kjQEhu47BJhERVDSXy36Yev3KQsjVkpGHx4Xhpkkjbfpx+xmOXrE0vwvRH1 izDi+3ku6R7AFPmW3NTCcJkcIWmMPWwHpQi5D65PUOkQaTLvTVm9zcgMF1Hzqcdrv/ apzPtGjoyfCVSk3vOs4spS75LuzT+ireuOcoiQ84= Date: Wed, 6 Apr 2022 20:13:36 +0200 From: Greg KH To: guoren@kernel.org Cc: arnd@arndb.de, palmer@dabbelt.com, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Guo Ren , Palmer Dabbelt , Masami Hiramatsu , stable@vger.kernel.org Subject: Re: [PATCH V3] riscv: patch_text: Fixup last cpu should be master Message-ID: References: <20220406141649.728971-1-guoren@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220406141649.728971-1-guoren@kernel.org> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 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?