Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753216Ab0GIBC1 (ORCPT ); Thu, 8 Jul 2010 21:02:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:7612 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751281Ab0GIBC0 (ORCPT ); Thu, 8 Jul 2010 21:02:26 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Roland McGrath To: paulmck@linux.vnet.ibm.com X-Fcc: ~/Mail/linus Cc: Oleg Nesterov , Andrew Morton , Don Zickus , Frederic Weisbecker , Ingo Molnar , Jerome Marchand , Mandeep Singh Baines , linux-kernel@vger.kernel.org, stable@kernel.org, "Eric W. Biederman" Subject: Re: while_each_thread() under rcu_read_lock() is broken? In-Reply-To: Paul E. McKenney's message of Thursday, 8 July 2010 17:41:07 -0700 <20100709004107.GQ2426@linux.vnet.ibm.com> References: <20100618190251.GA17297@redhat.com> <20100618193403.GA17314@redhat.com> <20100618223354.GL2365@linux.vnet.ibm.com> <20100621170919.GA13826@redhat.com> <20100621174455.GA14886@redhat.com> <20100621190212.C8630400C5@magilla.sf.frob.com> <20100621200633.GA21099@redhat.com> <20100708235925.A71DA4A967@magilla.sf.frob.com> <20100709004107.GQ2426@linux.vnet.ibm.com> X-Antipastobozoticataclysm: When George Bush projectile vomits antipasto on the Japanese. Message-Id: <20100709010137.B06704A968@magilla.sf.frob.com> Date: Thu, 8 Jul 2010 18:01:37 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1331 Lines: 30 > Hmmm... The kerneldoc for rcu_read_lock() looks like it says this > pretty unambiguously. Then again, that is easy for me to say, given > that I was the one who made most of this stuff up. ;-) Yeah, well, I thought I knew what rcu_read_lock did and the only new thing I had in mind was using call_rcu, so that's the only place I looked. It wasn't entirely unreasonable to have to read through Documentation/RCU/ a bit for a subtlety of this kind, and I did find it quickly enough once Oleg's attentiveness alerted me to be freshly afraid of the subtleties. > But it has been awhile since I looked after the kerneldoc. Please see > below for the changes I would make if left to myself. Those look good to me! > Any other suggestions for improvement to the kerneldoc? Oh, I don't know, send over someone to read it to me in a sultry voice so I get appropriately motivated to cast about for all of it I can find and listen closely to every word? It already looks like if I'd actually read all of it twice that day, I would have had the information I needed. Thanks, Roland -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/