From: Keir Fraser Subject: Re: unregister_xenbus_watch() handling of xenwatch_mutex Date: Thu, 18 Oct 2007 13:12:39 +0100 Message-ID: References: <471761F0.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <471761F0.76E4.0078.0@novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich , xen-devel@lists.xensource.com Cc: Jeremy Fitzhardinge List-Id: xen-devel@lists.xenproject.org That's a question for Jeremy. I think the 2.6.18 version is equally correct and only needs one if statement. Maybe hoisting the lock acquisition gave Jeremy a warmer fuzzy feeling? :-) -- Keir On 18/10/07 12:38, "Jan Beulich" wrote: > 2.6.23 acquires the mutex before canceling pending events, whereas > linux-2.6.18-xen acquires and releases the mutex back-to-back after > doing the cancellation. It would seem to me that the former method is > more robust, but otoh I'm wondering why this change then wasn't also > made in the 2.6.18 tree. > > Thanks, Jan > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel