From: Keir Fraser Subject: Re: Re: First post-xenbus-change USB patch Date: Tue, 15 Nov 2005 16:12:53 +0000 Message-ID: References: <1132068201.29871.48.camel@localhost.localdomain> <20051115153748.GL14433@leeni.uk.xensource.com> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20051115153748.GL14433@leeni.uk.xensource.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: Ewan Mellor Cc: harry , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 15 Nov 2005, at 15:37, Ewan Mellor wrote: >> I did a quick bit of testing and managed to mount the USB key again >> etc >> but had a few problems with module unload and reload. I think I maybe >> got hit by the unregister_watch deadlock then > > Yes, we really need to address that one. The code says > > /* Flush any currently-executing callback, unless we are it. :-) */ > > (IIRC, that's the deadlock point that Rusty highlighted) but I don't > really > know what this means. Can you shed some light here on what we ought > to be > doing? I'd love to see the xenwatch_mutex disappear -- it could well be involved in a deadlock situation. It is only used to ensure that an unregistered watch is not still executing when unregister_xenbus_watch() returns, but that is kind of important if e.g., module code is about to get blown away. :-) I'll have a think about it... -- Keir