Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp2691860rwb; Sat, 29 Jul 2023 11:47:40 -0700 (PDT) X-Google-Smtp-Source: APBJJlGqH9oZzGuoRqi0RPYGXO5iPPHVhfLwAWspxuWz6QExEm6ovmsAH+0yeKIjbnGlJ206M4b5 X-Received: by 2002:a17:902:6b49:b0:1bb:c0a6:2ee3 with SMTP id g9-20020a1709026b4900b001bbc0a62ee3mr4791002plt.26.1690656459815; Sat, 29 Jul 2023 11:47:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690656459; cv=none; d=google.com; s=arc-20160816; b=JzEH1KPGSpfFMVIiI5qio5097OVBdcZhy+mJbTi3xDWk21CrY1phKiHbxg9qvQBwiG L4bRbkkuY2QwLLQBPzxhf98CELm5Fq7qt8xVzPcHBTLLGL4zCc8Bl3VrF5taQvZvt/k+ e34y6LUG4ktP3YszWri7cnDIWICNywWTaE8ClpIi9pX0i53D+n/iPZjVyg1d41AklTuI GExOrY4PPI38DRuaxRCXPbJ5xLmYTxLOXObHotv1ULE0EaKZWZAHlCVEeHfgme9a80+2 snuAWtR5WS3sbV4U0+jh7IH4w6Z3JCmu/HTxN2mE67DUFCteGQtl9gU2sJ5tVbjb3XJV PcSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=B6faQrb3vVDF+1ZA3HcLro9nEgsaXGn2RtvbxbNNEvc=; fh=ensvRh18ObyfbTOVA1HyWvWinOtWNSxxC/ejDkozH34=; b=Y7hEuFzRbg/blTlJvjnkSDzPACfNjhIikHkbWLOlkDDx/FUnYVVv4Fy15uCu1GU0TY 2PXJUm5I4kN5Ai9+qSWD4ayqEOfU/iZ0cBWll8FBdZjaNdRk182VEt8QCgyTB+/jisHb peUj/lYHtn+4NCueMqX57Xd8ibR7cwuTFY31ZlNwnqGKXbhznnLnf9XNOHYpwoCjbYxm /tKj1jlM5YrcYDepAMlpM5Nf49apevvMH3gvGJmLJ6htoFnbT/GeWAwzXPco8/K7xEsZ wMvUaiNlyh8gjlPoTISYvoUI8QfqZTuQxRD29U1u80t4dHTgjG5aX6l4GeIaw0p+H6MJ PUkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=plXTHquW; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a1-20020a170902ecc100b001b874c5f7a8si4751371plh.653.2023.07.29.11.47.27; Sat, 29 Jul 2023 11:47:39 -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=@joelfernandes.org header.s=google header.b=plXTHquW; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230226AbjG2O2F (ORCPT + 99 others); Sat, 29 Jul 2023 10:28:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229619AbjG2O17 (ORCPT ); Sat, 29 Jul 2023 10:27:59 -0400 Received: from mail-il1-x12c.google.com (mail-il1-x12c.google.com [IPv6:2607:f8b0:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBA4AE7A for ; Sat, 29 Jul 2023 07:27:58 -0700 (PDT) Received: by mail-il1-x12c.google.com with SMTP id e9e14a558f8ab-34914684b62so353225ab.3 for ; Sat, 29 Jul 2023 07:27:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; t=1690640878; x=1691245678; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=B6faQrb3vVDF+1ZA3HcLro9nEgsaXGn2RtvbxbNNEvc=; b=plXTHquWdh4bDvLFn2iXXCHJmvv/+MoXo8lRqYopE64G7FgOHv+cnT2c05bBwokNCo f2+s+ItwB5Hhqd7VCNCKAVOINhdBw91B9XtHD1TQBm0bxbtcj/QaCeXNKMY+P2vShgB/ AyVO2DIkMfhumM/yGpIR5gkL7/1244kpfN2Zs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690640878; x=1691245678; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=B6faQrb3vVDF+1ZA3HcLro9nEgsaXGn2RtvbxbNNEvc=; b=Qya9OLad6LWWqBl07H2mxVxYhEwybDTGI+KqTfMcxOhbCdMC3ygr4spgmQbAsmAtiA 2jrq6ZTQGy2Q1J2cxo7PzjR8J2lK3Uqf8UAAbK1DT5ou+YxEDaIaQiFpHCFAeZwe/TLN jPPufDPnBl6U2Lk2LPlkfnqx1RSrjLkfu96NZzB/BJuNNOhhhuuIbH22dEjQCkUxHC5T e87m/WYDzwZSHOYfOqD8BKs2o3V915L9df5Np87m69QYNuwnuafJb/FmMDarG6w45/nV Lkz7MMdVMMZEBiP7n1vXLX9lFO5XzRFATb1rm8hbwIs5FxkFo9ygSjZN6pwAv4sYnTfO 8dgw== X-Gm-Message-State: ABy/qLYYumvClh7ASHJUR/cAnsWEdQH6J7SLfTsVbZWukv30j0YHoFvC JMTq/eeRnKu/zCy8vc691TqPOeODkh8ccmlQGJo= X-Received: by 2002:a05:6e02:1d94:b0:348:f6cb:e585 with SMTP id h20-20020a056e021d9400b00348f6cbe585mr2922758ila.30.1690640877759; Sat, 29 Jul 2023 07:27:57 -0700 (PDT) Received: from joelboxx5.c.googlers.com.com (254.82.172.34.bc.googleusercontent.com. [34.172.82.254]) by smtp.gmail.com with ESMTPSA id q9-20020a0566380ec900b0042b35c7b8c5sm1855362jas.61.2023.07.29.07.27.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Jul 2023 07:27:57 -0700 (PDT) From: "Joel Fernandes (Google)" To: linux-kernel@vger.kernel.org Cc: rcu@vger.kernel.org, paulmck@kernel.org, "Joel Fernandes (Google)" , Frederic Weisbecker , Neeraj Upadhyay , Josh Triplett , Boqun Feng , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Zqiang Subject: [PATCH v2 3/5] tree/nocb: Adjust RCU_NOCB_WAKE_* macros from weaker to stronger Date: Sat, 29 Jul 2023 14:27:33 +0000 Message-ID: <20230729142738.222208-4-joel@joelfernandes.org> X-Mailer: git-send-email 2.41.0.487.g6d72f3e995-goog In-Reply-To: <20230729142738.222208-1-joel@joelfernandes.org> References: <20230729142738.222208-1-joel@joelfernandes.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 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 -- 2.41.0.487.g6d72f3e995-goog