From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755799Ab1GKBYn (ORCPT ); Sun, 10 Jul 2011 21:24:43 -0400 Received: from li9-11.members.linode.com ([67.18.176.11]:51760 "EHLO test.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753471Ab1GKBYj (ORCPT ); Sun, 10 Jul 2011 21:24:39 -0400 Date: Sun, 10 Jul 2011 21:24:29 -0400 From: "Ted Ts'o" To: Lai Jiangshan Cc: "Paul E. McKenney" , Steven Rostedt , Ingo Molnar , linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] jbd2,rcu: correctly use RCU Message-ID: <20110711012429.GD28763@thunk.org> Mail-Followup-To: Ted Ts'o , Lai Jiangshan , "Paul E. McKenney" , Steven Rostedt , Ingo Molnar , linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on test.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 16, 2011 at 09:47:04AM +0800, Lai Jiangshan wrote: > In read site, we need to use local_ptr = rcu_dereference(), > and then use this local_ptr to read the content. > > In update site, we should assign/publish the new object/pointer after > the content of the new object/pointer is fully initialized, > and we can't not touch the object after the pointer assignment. > rcu_assign_pointer() is need for the assignement. > > Signed-off-by: Lai Jiangshan Actually, after thinking about this some more, I think I'm going to just change the jbd2 events to simply print MAJOR(__entry->dev) and MINOR(__entry->dev). Otherwise, the perf tool stops dies and stops interpreting the trace points when it tries to interpret "jbd2_dev_to_name(REC->dev)" in the print format. So I'll just drop jbd2_dev_to_name() completely for the jbd2 tracepoints. It's not worth it. - Ted