Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp6815568rwp; Tue, 18 Jul 2023 06:20:58 -0700 (PDT) X-Google-Smtp-Source: APBJJlHEnkdvFhthf/UbqJYQSh3IxR+CE9ejP+GLOMtbkI4HRijGcZUGMasQiI38ND/NE4nv8vHS X-Received: by 2002:a05:6402:1857:b0:521:7667:3c7a with SMTP id v23-20020a056402185700b0052176673c7amr9900643edy.19.1689686457869; Tue, 18 Jul 2023 06:20:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689686457; cv=none; d=google.com; s=arc-20160816; b=XfGbMyOMrZ5FlTfGPS7wsMvn6PzTXJltJx3KSH8iYE9HA+9T3h3NNfDKQFKDEHvooy +oV1UdA1wxeVppcA+6f2NpSMwqu6wJ/aTIgCXaSrbd7JsMo7eatSXBQTZoCFTQrHPm6J wZgRQdK1QPTYSBh154ZwtO6ytnKWjJpa/NnM58f7+k1HfqV3UPqbhCITT6pC57SCLWo3 dr/3kquMVnzkhLPRANmORk1aAWCnB6GHKWYiZubjNYk9+4rXsvTaWHOvz6aKayYrQPDx W2rPT5zbmI3X1FG7kt0Q6eKKPThi3PYEkXnhlFo3cqp7liA+Cy/KVoMvnT+7WfZmzIkj 9J8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=p5tt9zeLQ2+OjFi48j9FEVf0rh+9eU5vhKKJxQtews0=; fh=nZJpSKhua9IfaR6782lqdyVAF64l/o5spiVv/OPfAjE=; b=tqhpkpJnnFMtavpHan88CZ5c7VxXjDD8TQqDDI/c7PqqFkRgHsfPRkr3HdVav4raAO EJzmANB3AVWGMCwLltb6NGmt70eOQg3c5T+bJLv5iZlq6Bm+/VPxS/iFEw4tB4ToUzya yYZHd4lv9YNrs6GEMMbhB+cB9jZ9NDjldUJITUAybKcnVIN1an+j0ivGqmLofydtutJN r3IDKkNaLLqnQ1S6Otaxqz7kqgsbWUZJG/G3d9qyBCrnVd+RM8wJwLaSAopA+otGp3BF eTcY7ejIS5qKDyJHaYSwd5U2H7uafgdsmWGtIthLDivG8aIhYu8gROakswYL3llqCBn7 CYCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=micTBVpm; 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 x2-20020aa7cd82000000b0051d947a7ba8si1294095edv.159.2023.07.18.06.20.33; Tue, 18 Jul 2023 06:20:57 -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=micTBVpm; 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 S232398AbjGRM7a (ORCPT + 99 others); Tue, 18 Jul 2023 08:59:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229886AbjGRM72 (ORCPT ); Tue, 18 Jul 2023 08:59:28 -0400 Received: from mail-qt1-x82e.google.com (mail-qt1-x82e.google.com [IPv6:2607:f8b0:4864:20::82e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE0D61B6 for ; Tue, 18 Jul 2023 05:59:26 -0700 (PDT) Received: by mail-qt1-x82e.google.com with SMTP id d75a77b69052e-4039f7e1d3aso46987451cf.0 for ; Tue, 18 Jul 2023 05:59:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; t=1689685166; x=1692277166; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=p5tt9zeLQ2+OjFi48j9FEVf0rh+9eU5vhKKJxQtews0=; b=micTBVpm101CT2ld66mNBx1Untcd57oicFHLWr+1pRSRAr10iA6mnsKePo8SwbMu/9 QfYj7peQd/ZXjHarnUwV57tPXAsZTwrRbvZkFTJtQndf2jWQWNKOPZz1b+LsqBA6V6rN LzLOdXxzRBT8m/oKr5vGFIxE4i1J9YfA9wVFs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689685166; x=1692277166; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=p5tt9zeLQ2+OjFi48j9FEVf0rh+9eU5vhKKJxQtews0=; b=FuI/mKW+iGbSc8Mmva05AAMbHwgh8hL3FBy1EETrywsK4w/cO/kzLWIW9nQsbrBtFc mgsPwFAXxH15ChakaHbRDV4dVHjbxFm08N1wDG9LX4DBAQT2HTvSWAXv7pTvtgI2QxN6 brCROpVu7noOPtJ2Gc0phDk437XmOLGiiGcSRCUo87J0JiYsX4VsffG8vTU40akgCjRQ qZVPpLdubHFApLWBDsYq/EBeVF9HnLCcduN2P+UoQnzhZkOW7/URLBy908sasFoC3PfP XjQFT+AnQa0c8hr0fymR1hXW9gDHipDe0MEr1vxvbKxIynLE9wwONhuJUV06sBYVH45M iGIw== X-Gm-Message-State: ABy/qLbdGJSaS5Jgfb/11zI2P/DiwhbYH2s6rxGAtKXxtRgXeUY1pFnw wtMYtZogc5v0B5F81zX4bhuHug== X-Received: by 2002:ac8:580f:0:b0:403:ebb2:dd4f with SMTP id g15-20020ac8580f000000b00403ebb2dd4fmr9621394qtg.59.1689685166040; Tue, 18 Jul 2023 05:59:26 -0700 (PDT) Received: from [192.168.0.140] (c-98-249-43-138.hsd1.va.comcast.net. [98.249.43.138]) by smtp.gmail.com with ESMTPSA id gd25-20020a05622a5c1900b004033992e2dbsm625884qtb.45.2023.07.18.05.59.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 18 Jul 2023 05:59:25 -0700 (PDT) Message-ID: Date: Tue, 18 Jul 2023 08:59:24 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH rcu 1/6] rcu: Update synchronize_rcu_mult() comment for call_rcu_hurry() Content-Language: en-US To: "Paul E. McKenney" , rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@meta.com, rostedt@goodmis.org References: <6127192c-da9b-4599-9738-6e8f92e6c75c@paulmck-laptop> <20230717180317.1097590-1-paulmck@kernel.org> From: Joel Fernandes In-Reply-To: <20230717180317.1097590-1-paulmck@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 7/17/23 14:03, Paul E. McKenney wrote: > Those who have worked with RCU for some time will naturally think in > terms of the long-standing call_rcu() API rather than the much newer > call_rcu_hurry() API. But it is call_rcu_hurry() that you should normally > pass to synchronize_rcu_mult(). This commit therefore updates the header > comment to point this out. > > Signed-off-by: Paul E. McKenney > --- > include/linux/rcupdate_wait.h | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/include/linux/rcupdate_wait.h b/include/linux/rcupdate_wait.h > index 699b938358bf..5e0f74f2f8ca 100644 > --- a/include/linux/rcupdate_wait.h > +++ b/include/linux/rcupdate_wait.h > @@ -42,6 +42,11 @@ do { \ > * call_srcu() function, with this wrapper supplying the pointer to the > * corresponding srcu_struct. > * > + * Note that call_rcu_hurry() should be used instead of call_rcu() > + * because in kernels built with CONFIG_RCU_LAZY=y the delay between the > + * invocation of call_rcu() and that of the corresponding RCU callback > + * can be multiple seconds. > + * > * The first argument tells Tiny RCU's _wait_rcu_gp() not to > * bother waiting for RCU. The reason for this is because anywhere > * synchronize_rcu_mult() can be called is automatically already a full Reviewed-by: Joel Fernandes (Google) thanks, - Joel