From: Rusty Russell Subject: Re: [PATCH] Remove uneeded 'else if' when closing event channels. Date: Sat, 03 Dec 2005 10:31:00 +1100 Message-ID: <1133566260.21941.5.camel@localhost.localdomain> References: <20051202050519.GB25348@bakeyournoodle.com> <6db9374a4edb3d812498d5c59d169e17@cl.cam.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <6db9374a4edb3d812498d5c59d169e17@cl.cam.ac.uk> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: Xen-Devel , Tony Breeds List-Id: xen-devel@lists.xenproject.org On Fri, 2005-12-02 at 10:17 +0000, Keir Fraser wrote: > On 2 Dec 2005, at 05:05, Tony Breeds wrote: > > > Hi all, > > As far as I can see the remote domain cannot change from > > underneath us. Which means that the test for that situation is > > pointless > > > > This patch removes it. > > > > Signed-off-by: Tony Breeds > > It can change, between lines 340 and 341 (where we have no locks held). Hmm, you mean same domain makes another hypercall in parallel to close the event channel then rebind it to a different domain? In which case, close fails with EINVAL? Confused, Rusty. -- A bad analogy is like a leaky screwdriver -- Richard Braakman