From: Ian Campbell Subject: Re: [PATCH v3 13/15] libxl: introduce libxl_userdata_unlink Date: Tue, 9 Sep 2014 12:42:38 +0100 Message-ID: <1410262958.8217.145.camel@kazak.uk.xensource.com> References: <1409870601-7538-1-git-send-email-wei.liu2@citrix.com> <1409870601-7538-14-git-send-email-wei.liu2@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1409870601-7538-14-git-send-email-wei.liu2@citrix.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 Thu, 2014-09-04 at 23:43 +0100, Wei Liu wrote: > This will be used in later patch for xl to remove its "xl" userdata > file. > > Both CTX lock and userdata lock are taken in this API. CTX lock is taken > to maintain locking hierarchy, but it also has a side effect to protect > against R-M-W by other threads. Userdata lock is used to protect against > domain destruction. > > In general application should not rely on these internal locks to > protect its own userdata files. It should deploys its own lock if it > cares. > > Signed-off-by: Wei Liu Acked-by: Ian Campbell