From patchwork Thu May 18 22:40:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 96083 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp851636vqo; Thu, 18 May 2023 16:00:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ72NOIB8LVmq2tz1Cf7ceeH0iDZ2ALlu2mtH8Mk4ImS8u9k32NzbyjgyRh8taiTeq95Bs8f X-Received: by 2002:a17:90a:fb42:b0:240:f8a6:55c7 with SMTP id iq2-20020a17090afb4200b00240f8a655c7mr115351pjb.20.1684450843663; Thu, 18 May 2023 16:00:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684450843; cv=none; d=google.com; s=arc-20160816; b=fL74YAqw3HqUEmbm8YK6PfeJ/YCqZkAST5jIGA2vx8/hfDWvoxWNYI2vv4LaXQH5E+ +lGQwcooR/gJrBZRMFCviCdc5IGcK/A12JlmzKRCmoWrwv89tNvl4yijzqwzgX/+AXMv nxGfZtt4xh064DhhHDzp4+MRSNRbPRF3XPATfCj0a5A1ju2VC4rSpQbm9Gj+aw8xz4OL W2Su4kKGYHeUw2jiOuTNug221nhGOdyk9z173IcMU42URQL0+Faxrkra1iotDzyORLj0 HOT3OvVijNSzbgl6ldlNY2JiTqgUnMu3YoSZ24ICqtf1NYwuioanE2gt6Q/sq3DotLPr Bmbw== 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=YstYtaldny4jSC9XvvYNtauqMUhPKo5ar5XcrW2XToA=; b=YDb9f2iatM6bAp4t8OQzrEZWrk+iQjnin/4qemh6rlJvmXdch4x2d1frlW74y27VaV LNkF3zWuEyg5Dkdr1flj1fTPfZ628DRUcC0aVeEA6PDA+vaqRliEdjViHBpJ0YmS7FPU p6rUZYbve9WlXaoj4+Qbyv5IJitZvyU1poPd+ElkFTRhbz+fyw4Z+ek6JP90UJorSyu3 8IFzwDejWFnWxmu/gurMTbnuP8J8eTui7SLgwTMtClL6DIZcyD/Up3CgEoqJhc1q61Ai 5MeFs64NqFEQDQSTnB79j9Fr9l1TLpwjarbA75ZQQun9TY/GkFaJWgAzgYWisVrhwbxe P2BA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=P18tjltV; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d5-20020a17090ab30500b00250c9a70af9si522272pjr.63.2023.05.18.16.00.30; Thu, 18 May 2023 16:00:43 -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=P18tjltV; 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 S231192AbjERWkb (ORCPT + 99 others); Thu, 18 May 2023 18:40:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230299AbjERWkW (ORCPT ); Thu, 18 May 2023 18:40:22 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6249AE64; Thu, 18 May 2023 15:40:21 -0700 (PDT) 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 dfw.source.kernel.org (Postfix) with ESMTPS id E48BB638BE; Thu, 18 May 2023 22:40:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D8F0CC4339B; Thu, 18 May 2023 22:40:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684449620; bh=fecc2OUGYvaY7HhyWoq5AoCd5a8aYFQhBEm7VND8WRg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=P18tjltVWhrWdAx/t73MdYzudw5rAwtcgHmB/MnIe2y6gVDckQF6FTRGLFg5731sU JE8gbMwtGGjpyk1PixlH1id+rzzkUnMY7HfZjyVRsUV1HP8FnjtWswBasnQXpAHtsp 6ir0BbvnOUsku7PcQI00Gs+RbQmLmmpQ14v5cqILduXW0oWTIcegiWs1T0oDdXfgZi R27bwO9Bwj80Phs8CAWxV7dquax9Pk2BNtHDLSFke/1Fc6SO/V6pXockfnzEc//t3D Kew9iJOBJow0x/qHQ/A+sccnynoNIEtq3gnQjfqjzmQxlnKsu4mtFw4A96Ynsalyfq U++W4rKV2PkHQ== From: SeongJae Park To: paulmck@kernel.org Cc: SeongJae Park , joel@joelfernandes.org, corbet@lwn.net, rcu@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/4] Docs/RCU/rculist_nulls: Fix hlist_head field name of 'obj' Date: Thu, 18 May 2023 22:40:07 +0000 Message-Id: <20230518224008.2468-4-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230518224008.2468-1-sj@kernel.org> References: <20230518224008.2468-1-sj@kernel.org> MIME-Version: 1.0 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,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766274727595725371?= X-GMAIL-MSGID: =?utf-8?q?1766274727595725371?= 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 --- 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 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