Received: by 2002:a05:7412:1703:b0:e2:908c:2ebd with SMTP id dm3csp3070466rdb; Tue, 29 Aug 2023 04:43:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGnxfXuD0ZY3kFQihdPmJh0t0SamYqttwRLxlQR/RF52UoEmBulQFV9cJZ7yVt//n3ezfis X-Received: by 2002:a17:906:af65:b0:992:7295:61c9 with SMTP id os5-20020a170906af6500b00992729561c9mr21194617ejb.69.1693309425286; Tue, 29 Aug 2023 04:43:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693309425; cv=none; d=google.com; s=arc-20160816; b=fZojypu4Cx/32WVZjP/McP4I5gpOnYZdtzG9vJc9Z5N1PbT9DbZtp7i1o9eo8bUN54 +0gdz6iA/7tcX51jpxu2vid0PRx0YfOH6HGv+MWTr456N1/3kd5xGkqQYuTBpsvcSe50 zPEIa6XFaM7PoBUYJC+YGrgArmiU2NHDzkZJiIFUO6whxHsH+Y/DgdMxQEqAllpFeXce G4eKtM39YFj1hux++R/hcWb6VYzJBDO09hmoGmLzllvA1roWTxVZ7F5sMazcY9r00y1Z Yp8LfxWqKP61XCkXO7XMIGXlGAQTRtz/AXkkzVCbTLiGAxF5KP1Na5Avlemtc7re4sEW Q5bg== 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=QzOYKuJ/OA8e2dg0NqRJzZdeH9ZlpIQHyJhXlXnFh/Q=; fh=I46yfdmP0MsWevUtvHB3e395Sd0Uzfc0WEyVww1Unas=; b=CnzvJUbYPtADfd3C195bJICM1c+Wm2Ckgif6kuYo+XEq8eFymqFEQ/LDGwXvQtozcy 5U7/HAj26Mm7kevOuiImY7n0L3XWO2EHhP+Mwk6jz5mYLM5+7PxB9dfuNH23N1ZVBz7j Wu9bGE6vPmBBncOFB+DEG/Vh2aO2I1dfw5ENWosIz7XktuT6jkt5GAAtZRnVPIyR/Ihk LaFhQR1QwVkEQIv3Rf6AMKQLrURHWSHxtHRUs3hkMMXCeDW9Uts/Gaej31hwuyvuQTqy Sro2fC3beC8U7mQw3YSOnxcZv40Gw06epgUpv6sDiBjdeb+H9BlsVyX77SrByLGlNcM8 /pGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=m9hoWJSJ; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pg26-20020a170907205a00b009a1aea8249fsi4052633ejb.314.2023.08.29.04.43.11; Tue, 29 Aug 2023 04:43:45 -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=@kernel.org header.s=k20201202 header.b=m9hoWJSJ; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232723AbjH2Kx6 (ORCPT + 99 others); Tue, 29 Aug 2023 06:53:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233523AbjH2Kx1 (ORCPT ); Tue, 29 Aug 2023 06:53:27 -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 A34311AD; Tue, 29 Aug 2023 03:53:24 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 36C076549D; Tue, 29 Aug 2023 10:53:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3F02AC433CA; Tue, 29 Aug 2023 10:53:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1693306403; bh=Shsj+vPzu/D2j5Y+GxlorxF1u84+Dwugwd6FWmNj63U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=m9hoWJSJY1mz3pLb8V9jQNig/TJu9aFLXi2oC1NqPy/HLp6cWNJTwIhOcfyKL/zpz D1TEo+zfG38H99g+0Wdh4U2l6b/Smp/G4m7IAKuPs76+LFguQX72m7eoDm9v8mkgvk OxZW/pPJJ4AqdtW68+gnOyWx4Rbi5TTpqbxP8AtVsQstkaRZmffSDBUCu3POif59fr 1ggsAxZIxRYdsQZI7lieQESxFqUkmx9eDIfISPsDNAr+8QyOzH6nUN9Z4nCgcT4Dw+ 1Sy4htezlnhqrNLGV5PPrWIyvGP23o7xOTrk1P/H7PT69HzQIoqnajvgksezWxwm0k V3wT3trXTGLpA== Date: Tue, 29 Aug 2023 12:53:20 +0200 From: Frederic Weisbecker To: "Joel Fernandes (Google)" Cc: linux-kernel@vger.kernel.org, rcu@vger.kernel.org, paulmck@kernel.org, Neeraj Upadhyay , Josh Triplett , Boqun Feng , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Zqiang Subject: Re: [PATCH v2 3/5] tree/nocb: Adjust RCU_NOCB_WAKE_* macros from weaker to stronger Message-ID: References: <20230729142738.222208-1-joel@joelfernandes.org> <20230729142738.222208-4-joel@joelfernandes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230729142738.222208-4-joel@joelfernandes.org> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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 Sat, Jul 29, 2023 at 02:27:33PM +0000, Joel Fernandes (Google) wrote: > This is needed to make the next patch work correctly as we rely on the > strength of the wakeup when comparing deferred-wakeup types across > different CPUs. > > Signed-off-by: Joel Fernandes (Google) > --- > kernel/rcu/tree.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/kernel/rcu/tree.h b/kernel/rcu/tree.h > index 192536916f9a..0f40a9c2b78d 100644 > --- a/kernel/rcu/tree.h > +++ b/kernel/rcu/tree.h > @@ -288,8 +288,8 @@ struct rcu_data { > > /* Values for nocb_defer_wakeup field in struct rcu_data. */ > #define RCU_NOCB_WAKE_NOT 0 > -#define RCU_NOCB_WAKE_BYPASS 1 > -#define RCU_NOCB_WAKE_LAZY 2 > +#define RCU_NOCB_WAKE_LAZY 1 > +#define RCU_NOCB_WAKE_BYPASS 2 > #define RCU_NOCB_WAKE 3 > #define RCU_NOCB_WAKE_FORCE 4 Good change but make sure to audit all the occurences of RCU_NOCB_WAKE_LAZY and RCU_NOCB_WAKE_BYPASS. For example this breaks do_nocb_deferred_wakeup_timer() that will now ignore RCU_NOCB_WAKE_LAZY timers. Thanks.