From patchwork Mon Mar 30 20:11:47 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jesper Dangaard Brouer X-Patchwork-Id: 25337 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by ozlabs.org (Postfix) with ESMTP id 64C40DDEF1 for ; Tue, 31 Mar 2009 07:12:03 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758411AbZC3ULz (ORCPT ); Mon, 30 Mar 2009 16:11:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758307AbZC3ULz (ORCPT ); Mon, 30 Mar 2009 16:11:55 -0400 Received: from mgw2.diku.dk ([130.225.96.92]:42113 "EHLO mgw2.diku.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758068AbZC3ULy (ORCPT ); Mon, 30 Mar 2009 16:11:54 -0400 Received: from localhost (localhost [127.0.0.1]) by mgw2.diku.dk (Postfix) with ESMTP id 2909D19BC13; Mon, 30 Mar 2009 22:11:52 +0200 (CEST) Received: from mgw2.diku.dk ([127.0.0.1]) by localhost (mgw2.diku.dk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03836-05; Mon, 30 Mar 2009 22:11:47 +0200 (CEST) Received: from nhugin.diku.dk (nhugin.diku.dk [130.225.96.140]) by mgw2.diku.dk (Postfix) with ESMTP id B58F219BC0C; Mon, 30 Mar 2009 22:11:47 +0200 (CEST) Received: from ask.diku.dk (ask.diku.dk [130.225.96.225]) by nhugin.diku.dk (Postfix) with ESMTP id 5F0356DFB7A; Mon, 30 Mar 2009 22:11:37 +0200 (CEST) Received: by ask.diku.dk (Postfix, from userid 3075) id 976842CE35F; Mon, 30 Mar 2009 22:11:47 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by ask.diku.dk (Postfix) with ESMTP id 9422A2CE2A6; Mon, 30 Mar 2009 22:11:47 +0200 (CEST) Date: Mon, 30 Mar 2009 22:11:47 +0200 (CEST) From: Jesper Dangaard Brouer To: Jarek Poplawski Cc: Jesper Dangaard Brouer , "David S. Miller" , "Paul E. McKenney" , netdev Subject: [PATCH v2 3/3] Doc: Fix spelling in RCU/rculist_nulls.txt. In-Reply-To: Message-ID: References: <20090330085302.19172.22808.stgit@localhost.localdomain> <20090330090306.19172.94170.stgit@localhost.localdomain> <49D0FA6E.4090402@gmail.com> MIME-Version: 1.0 X-Virus-Scanned: amavisd-new at diku.dk Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Trival spelling fixes in RCU/rculist_nulls.txt. Reviewed-by: Paul E. McKenney Reviewed-by: Jarek Poplawski Signed-off-by: Jesper Dangaard Brouer --- Documentation/RCU/rculist_nulls.txt | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Documentation/RCU/rculist_nulls.txt b/Documentation/RCU/rculist_nulls.txt index 239f542..6389dec 100644 --- a/Documentation/RCU/rculist_nulls.txt +++ b/Documentation/RCU/rculist_nulls.txt @@ -21,7 +21,7 @@ if (obj) { /* * Because a writer could delete object, and a writer could * reuse these object before the RCU grace period, we - * must check key after geting the reference on object + * must check key after getting the reference on object */ if (obj->key != key) { // not the object we expected put_ref(obj); @@ -117,7 +117,7 @@ a race (some writer did a delete and/or a move of an object to another chain) checking the final 'nulls' value if the lookup met the end of chain. If final 'nulls' value is not the slot number, then we must restart the lookup at -the begining. If the object was moved to same chain, +the beginning. If the object was moved to the same chain, then the reader doesnt care : It might eventually scan the list again without harm.