From: Keir Fraser Subject: Re: RE: Bug in tmem: refcount leak leaves zombie saved domains Date: Thu, 10 Jun 2010 17:34:40 +0100 Message-ID: References: <4e50e2b3-6f87-47cc-88b5-b626a742cd74@default> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4e50e2b3-6f87-47cc-88b5-b626a742cd74@default> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Dan Magenheimer , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 10/06/2010 16:38, "Dan Magenheimer" wrote: > Semi-related, rcu_lock_domain_by_id() has a "return d" inside > the for loop without an rcu_read_unlock(). I see that this > is irrelevant now because rcu_read_unlock() is a no-op anyway, > but maybe this should be cleaned up for the same reason -- > in case rcu locking is ever fully implemented. The implementation is correct. The matching rcu_read_unlock() is in rcu_unlock_domain(). -- Keir