From: Ian Campbell Subject: Re: [PATCH v3 09/15] libxl: synchronise configuration when we hotplug a device Date: Tue, 9 Sep 2014 14:41:25 +0100 Message-ID: <1410270085.8217.184.camel@kazak.uk.xensource.com> References: <1409870601-7538-1-git-send-email-wei.liu2@citrix.com> <1409870601-7538-10-git-send-email-wei.liu2@citrix.com> <1410261112.8217.126.camel@kazak.uk.xensource.com> <20140909133749.GD24977@zion.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20140909133749.GD24977@zion.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Wei Liu Cc: ian.jackson@eu.citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Tue, 2014-09-09 at 14:37 +0100, Wei Liu wrote: > How about this: > > If the thread / process trying to destroy domain loses the rase, it's > blocked by json_lock. If the hotplug thread is loser, it bails at > acquiring lock because lock acquisition function checks existence of > the domain. Sounds good. (typo: "race" not rase) > > Re typos, I will fix them in next round. > > Wei.