From patchwork Mon Mar 30 09:03:06 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: 25301 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 A72B7DDEE7 for ; Mon, 30 Mar 2009 20:04:08 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758092AbZC3JDK (ORCPT ); Mon, 30 Mar 2009 05:03:10 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757080AbZC3JDJ (ORCPT ); Mon, 30 Mar 2009 05:03:09 -0400 Received: from lanfw001a.cxnet.dk ([87.72.215.196]:40336 "EHLO lanfw001a.cxnet.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758003AbZC3JDI (ORCPT ); Mon, 30 Mar 2009 05:03:08 -0400 Received: from localhost.localdomain (unknown [172.31.4.93]) by lanfw001a.cxnet.dk (Postfix) with ESMTP id 7970A163626; Mon, 30 Mar 2009 11:03:06 +0200 (CEST) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by localhost.localdomain (Postfix) with ESMTP id 6E9CFCBA36; Mon, 30 Mar 2009 11:03:06 +0200 (CEST) From: Jesper Dangaard Brouer Subject: [PATCH 3/3] Doc: Fix spelling in RCU/rculist_nulls.txt. To: "David S. Miller" Cc: "Paul E. McKenney" , netdev@vger.kernel.org Date: Mon, 30 Mar 2009 11:03:06 +0200 Message-ID: <20090330090306.19172.94170.stgit@localhost.localdomain> In-Reply-To: <20090330085302.19172.22808.stgit@localhost.localdomain> References: <20090330085302.19172.22808.stgit@localhost.localdomain> User-Agent: StGIT/0.14.3 MIME-Version: 1.0 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. 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..ba075b2 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 same chain, then the reader doesnt care : It might eventually scan the list again without harm.