From: Ian Jackson Subject: Re: [PATCH] libxenstore: filter watch events in libxenstore when we unwatch Date: Mon, 24 Sep 2012 12:11:07 +0100 Message-ID: <20576.16331.346158.567037@mariner.uk.xensource.com> References: <1348049147-16752-1-git-send-email-julien.grall@citrix.com> <20572.35759.42063.973125@mariner.uk.xensource.com> <505C941F.6080903@citrix.com> <20572.38321.326083.184425@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: Julien Grall , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org Julien Grall writes ("Re: [Xen-devel] [PATCH] libxenstore: filter watch events in libxenstore when we unwatch"): > The function xs_check_watch was recently introduced in Xen (see your > commit on december 2011). Oh, I'd forgotten that. > Most of application, for instance QEMU, still use xs_read_watch. > So if xs_unwatch doesn't empty the pipe, most of this applications > potentially stall indefinitly. > > IMHO, this piece of code is really important. In that case, I agree. Thanks, Ian.