Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751196AbWAIJbr (ORCPT ); Mon, 9 Jan 2006 04:31:47 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751202AbWAIJbr (ORCPT ); Mon, 9 Jan 2006 04:31:47 -0500 Received: from e36.co.us.ibm.com ([32.97.110.154]:21925 "EHLO e36.co.us.ibm.com") by vger.kernel.org with ESMTP id S1751196AbWAIJbq (ORCPT ); Mon, 9 Jan 2006 04:31:46 -0500 Date: Mon, 9 Jan 2006 15:01:42 +0530 From: Srivatsa Vaddagiri To: Oleg Nesterov Cc: linux-kernel@vger.kernel.org, Dipankar Sarma , Manfred Spraul , Linus Torvalds , "Paul E. McKenney" , Andrew Morton Subject: Re: [PATCH 2/5] rcu: don't check ->donelist in __rcu_pending() Message-ID: <20060109093141.GA10811@in.ibm.com> Reply-To: vatsa@in.ibm.com References: <43C165BC.F7C6DCF5@tv-sign.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43C165BC.F7C6DCF5@tv-sign.ru> User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1210 Lines: 34 On Sun, Jan 08, 2006 at 10:19:24PM +0300, Oleg Nesterov wrote: > ->donelist becomes != NULL only in rcu_process_callbacks(). > > rcu_process_callbacks() always calls rcu_do_batch() when > ->donelist != NULL. > > rcu_do_batch() schedules rcu_process_callbacks() again if > ->donelist was not flushed entirely. > > So ->donelist != NULL means that rcu_tasklet is either > TASKLET_STATE_SCHED or TASKLET_STATE_RUN, we don't need to > check it in __rcu_pending(). Do I smell a bug wrt CPU Hotplug here? Basically, I see that we do a rcu_move_batch of ->curlist and ->nxtlist of the dead CPU. Why not ->donelist? If we have to do a rcu_move_batch of ->donelist also, then perhaps the ->donelist != NULL check is required in rcu_pending? This is considering that the RCU tasklet of the dead CPU is killed (rather than moved over to a different CPU). -- Thanks and Regards, Srivatsa Vaddagiri, Linux Technology Center, IBM Software Labs, Bangalore, INDIA - 560017 - 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/