Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3011574rwd; Wed, 14 Jun 2023 10:01:22 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6bSKWyVtse+TH7b0EjGTCkLoL1C90QTDXLstpuOJ6sovPEk4r9GnWTkmKHYzA9WhQG9Tu0 X-Received: by 2002:a05:6830:13c9:b0:6b3:81eb:fe61 with SMTP id e9-20020a05683013c900b006b381ebfe61mr4058131otq.4.1686762081746; Wed, 14 Jun 2023 10:01:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686762081; cv=none; d=google.com; s=arc-20160816; b=cU1EgS1Xvnx/vAKI0BO4XmEt0FyaJWjAbcPmiRg47rrHmWhoayYBW58SO5uTH9l0nh QVJehqMWoOZCzblu21vG3G2KgB8EgkIjy+kNs7ti2k60WFUNb0Z4uqHkRSKTLannHDqC wh4P2FrrRt/gVJfff78EHkmcxIPDwFMsoZ2jSZF19ARQ9etrJV8PM2XuqatPqiGLQgki VIonKGmjblw9/cQwY+oIQvZ8G1c9WDM3QEu0RnKkkB0v84dO2cZhhHor3ARt+o0+/mOQ 0rZtemp5G+s2sZ/+NcNuHoGw7PQ49wY07/rfPzqs52y4GEKRsjGgjF3nfpVvS0UHIx2l Y79g== 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=zKoDfhnu8O6bvdJAzyfcj9det8ZZo+LNFyIkdLgRGvc=; b=bNeehON19GMR6N+o19hs8jyuVsUxaNTGvxBl7AF1SEJlEgREk5mHkxr52DWwsy5N6R Ogg54rIW5FMkiOACMIdtfy3QSr1t8Tb2xy0oVRFnE+amjWFtVU/UJB8fJwtyKMuTrgkv MFliykCXrc6vFCNH3J+DIb0DH3bqeVlc0x3asrRmr0dLM9IUSEE+TbIJf7q3/UBB7NBs Wj0QBjMm9avg0jGZwoC3sWvmbNjsb4FBknMW7tV9iQ5B/rP4ILkfbdnzPsnqwcY+3+wr vO0lnjfe6IwlabQ90DoVXr/Xi69eAh/4q0j542Dk9QcXQT9QxE2M+TulIR/zfi8bHQR6 2BCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tGKyM3Fj; 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 bv10-20020a632e0a000000b0054f96440ac8si5545187pgb.29.2023.06.14.10.00.41; Wed, 14 Jun 2023 10:01:21 -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=tGKyM3Fj; 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 S234350AbjFNQhZ (ORCPT + 99 others); Wed, 14 Jun 2023 12:37:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235119AbjFNQhG (ORCPT ); Wed, 14 Jun 2023 12:37:06 -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 588512684; Wed, 14 Jun 2023 09:36:52 -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 E183D64098; Wed, 14 Jun 2023 16:36:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 47470C433C0; Wed, 14 Jun 2023 16:36:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686760611; bh=Q3hI23JS1gH/eq1EjaREWFCzmK5MREhtpdlNyvHwILw=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=tGKyM3FjC2pgb3RtrwXwRJCRJ1N4a2SUETeR/4kWmc0UAqN9jqE0kr6vFBs6Grhad fzurYJye5OzfWYTrTc8CB11rauV5Ks8bRSiwAhVbolNLcOW77vRd6NdK665sjQtyyN RfyBL0VFgAbnVIzH9DxI2wJhaHXbcrMe4+VEkNFmzHdBqD/yKII4y0XafZQ4pVT4RA TZtcUaBdm74ggGAwP5N+V7oYOvpttb+ndspnhp7TIrj62Uy7Iij/TrPjJ8WRr4E1LJ ci88t4/dTPvvh/X6Fsg5CwPbCqFNNsd7EckkgZ8WkQGEFDIPKQ+uSBZmr49oU2XMxr WFk7qXKHDKQMg== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id CE03BCE2246; Wed, 14 Jun 2023 09:36:50 -0700 (PDT) Date: Wed, 14 Jun 2023 09:36:50 -0700 From: "Paul E. McKenney" To: SeongJae Park Cc: joel@joelfernandes.org, mmpgouride@gmail.com, corbet@lwn.net, rcu@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 3/4] Docs/RCU/rculist_nulls: Fix hlist_head field name of 'obj' Message-ID: <43943609-f80c-4b6a-9844-994eef800757@paulmck-laptop> Reply-To: paulmck@kernel.org References: <20230613182434.88317-1-sj@kernel.org> <20230613182434.88317-4-sj@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230613182434.88317-4-sj@kernel.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,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 Tue, Jun 13, 2023 at 06:24:33PM +0000, SeongJae Park wrote: > The example code snippets on rculist_nulls.rst are assuming 'obj' to > have the 'hlist_head' field named 'obj_node', but a sentence is wrongly > mentioning 'obj->obj_node.next' as 'obj->obj_next'. Fix it. > > Signed-off-by: SeongJae Park > Reviewed-by: Joel Fernandes (Google) > --- > Documentation/RCU/rculist_nulls.rst | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Documentation/RCU/rculist_nulls.rst b/Documentation/RCU/rculist_nulls.rst > index 94a8bfe9f560..5cd6f3f8810f 100644 > --- a/Documentation/RCU/rculist_nulls.rst > +++ b/Documentation/RCU/rculist_nulls.rst > @@ -86,7 +86,7 @@ Quoting Corey Minyard:: > 2) Insertion algorithm > ---------------------- > > -We need to make sure a reader cannot read the new 'obj->obj_next' value > +We need to make sure a reader cannot read the new 'obj->obj_node.next' value I do like this being more specific, but if we are going do add this level of specificity, shouldn't we refer to a definition of ->obj_node? (I queued and pushed 1/4 and 2/4, thank you, and stopped here.) Thanx, Paul > and previous value of 'obj->key'. Otherwise, an item could be deleted > from a chain, and inserted into another chain. If new chain was empty > before the move, 'next' pointer is NULL, and lockless reader can not > -- > 2.25.1 >