Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp262685rwb; Wed, 14 Dec 2022 17:06:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf5NEDMpJInqb1W6wQZK/1bj6FDlxY/axRR2+w8aTYlbL+5H7KJj2nCHiCcl3q1miEc1ZD2H X-Received: by 2002:a17:906:5ad2:b0:7c1:98e:ed20 with SMTP id x18-20020a1709065ad200b007c1098eed20mr20453807ejs.35.1671066365210; Wed, 14 Dec 2022 17:06:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671066365; cv=none; d=google.com; s=arc-20160816; b=B4HoGDm6gpni9+L3H2/YeLP9OtouB8XtNmE7XkpYM2Mz/QsoTFqL/7XEbUaKrfAQXi fom/YntanhXwkVtUIm2uJlzAbDUxpgZjdSf9fLMLyhrb9MomFRgnKf3qjkL8LMIovhcU nYwxxgVRamSQu40FlIYlfJT8nCPMGYhLWZRIM/LkHP49w3RHEk+gbm6r/dWDzT2ZGrhf sT/iuxgaNgIBiHsTDioRija1Qa+0us6R16mdDxFmbw9YPKpGcs8WsvA7TYmDGD8+FYSY vyT9FrNfhFP8XhX8a1G1qYI1VgXpWDgfys5CLKkzq1I43vy+P5FXG8O/WWzEA+AB7k29 llTw== 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:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=/OBzTNKLcMO5xc4Fe4AfPi75GXw1xwX+0PNIYUupn2g=; b=PMvvckKwXKf7Dzge3NccFd4bTnh70cEOviqL/0dVcJV331eLGX7l61NAsCebG0tggi YuSgop09H+eNREhdIQHo2c+CaJ2fSpb6/6aCCs/WkPQVwy/EVHmVbYSbFetKF80wusEb z+/f/Ps5mCf1mwacSWhUIjdHkbUeQMGgW80G+BZ+L9Dy7iBEPwV/YH0t/CSlJCSk41fH 4JoHttMl0jhZl7Q3W/Zo9BnsjuCNCP9yrl4rPAdw+KwMKktWryGiBUpsYm3rCa1thkrp 6rz95kuATMnoFN1Gs3HQE9Wk3aZjZ0g/OqB0nz7BB3FMczwN8F5uEgOJNEaPmAssum7D i6UQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RcOMqxLs; 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 hz2-20020a1709072ce200b007ade22f401bsi13408665ejc.759.2022.12.14.17.05.46; Wed, 14 Dec 2022 17:06:05 -0800 (PST) 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=RcOMqxLs; 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 S230014AbiLOAMc (ORCPT + 69 others); Wed, 14 Dec 2022 19:12:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229854AbiLOAMF (ORCPT ); Wed, 14 Dec 2022 19:12:05 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3F69554EB; Wed, 14 Dec 2022 16:04:36 -0800 (PST) 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 90980B819B0; Thu, 15 Dec 2022 00:04:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 29EECC433D2; Thu, 15 Dec 2022 00:04:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1671062674; bh=6zdqv7Q8vPqfC1s6lXlTSp0z37xOGozf4pV1uPfE9b4=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=RcOMqxLsW0m76iF/DD3ge96L0j5jl66w4BTseO5hUDYboMtPpGretDEbf1SOCa+yF kbFICx8Xt3lpbvy4LJ/fhOJLj5Gr9LTuR7hEvyfAhAHQRBDnU+WaWdh4/av56iyFpb vSA0+GPkksYIOxt+gcRKvkzySm/tlikcAXxn99zw0NfXtgOkYy0pSxNZGhlmyI7dL6 Qv0rQGkspJ9gI/nsGWWAkAIJDMtUB3vjkyYD4k2Qk5ewVUGnO5XV/osN4TN82nauX3 jBypUpy0THA0Ql7SvLNlKRbq53BQbtvJmk3tBo5RMJzwBY37k/PoETxr5FjflQDeJt RKC4YjxrU3OGA== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id BC4125C0A6A; Wed, 14 Dec 2022 16:04:33 -0800 (PST) Date: Wed, 14 Dec 2022 16:04:33 -0800 From: "Paul E. McKenney" To: Joel Fernandes Cc: boqun.feng@gmail.com, frederic@kernel.org, neeraj.iitr10@gmail.com, urezki@gmail.com, rcu@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH RFC] srcu: Yet more detail for srcu_readers_active_idx_check() comments Message-ID: <20221215000433.GD4001@paulmck-ThinkPad-P17-Gen-1> Reply-To: paulmck@kernel.org References: <20221214191355.GA2596199@paulmck-ThinkPad-P17-Gen-1> <20221214212455.GA4001@paulmck-ThinkPad-P17-Gen-1> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 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, Dec 14, 2022 at 11:14:48PM +0000, Joel Fernandes wrote: > On Wed, Dec 14, 2022 at 11:10 PM Joel Fernandes wrote: > > > > On Wed, Dec 14, 2022 at 11:07 PM Joel Fernandes wrote: > > > > > > On Wed, Dec 14, 2022 at 9:24 PM Paul E. McKenney wrote: > > > > > I also did not get why you care about readers that come and ago (you > > > > > mentioned the first reader seeing incorrect idx and the second reader > > > > > seeing the right flipped one, etc). Those readers are irrelevant > > > > > AFAICS since they came and went, and need not be waited on , right?. > > > > > > > > The comment is attempting to show (among other things) that we don't > > > > need to care about readers that come and go more than twice during that > > > > critical interval of time during the counter scans. > > > > > > Why do we need to care about readers that come and go even once? Once > > > they are gone, they have already done an unlock() and their RSCS is > > > over, so they need to be considered AFAICS. > > > > > > > Aargh, I meant: "so they need to be considered AFAICS". > > Trying again: "so they need not be considered AFAICS". Give or take counter wrap, which can make it appear that still-present readers have finished. > Anyway, my 1 year old son is sick so signing off for now. Thanks. Ouch! I hope he recovers quickly and completely!!! Thanx, Paul