From: Ian Campbell Subject: Re: [PATCH 2/2] 4.1.2 blktap2 cleanup fixes. Date: Wed, 12 Dec 2012 18:03:29 +0000 Message-ID: <1355335409.10554.40.camel@zakaz.uk.xensource.com> References: <201211070207.qA727wF1028601@wind.enjellic.com> <20680.49934.2544.943098@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20680.49934.2544.943098@mariner.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: Ian Jackson Cc: "greg@enjellic.com" , "Keir (Xen.org)" , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Wed, 2012-12-12 at 17:46 +0000, Ian Jackson wrote: > Dr. Greg Wettstein writes ("[PATCH 2/2] 4.1.2 blktap2 cleanup fixes."): > > --------------------------------------------------------------------------- > > The following patch when applied on top of: > > > > libxl: attempt to cleanup tapdisk processes on disk backend destroy. > > > > Establishes correct cleanup behavior for blktap devices. This patch > > implements the release of the backend device before calling for > > the destruction of the userspace component of the blktap device. > > > > Without this patch the kernel xen-blkback driver deadlocks with > > the blktap2 user control plane until the IPC channel is terminated by the > > timeout on the select() call. This results in a noticeable delay > > in the termination of the guest and causes the blktap minor > > number which had been allocated to be orphaned. > > This looks plausible. But shouldn't it be applied to xen-unstable and > Xen 4.2 too ? Xen unstable and 4.2 changed in other ways which included fixing this issue as a side effect. I can't remember which change it was but I think it was either your asyncing up of the interfaces or the block script stuff which I did. You can probably find out which by looking at previous postings of this series. So this is a fix for the code as it was in 4.1.x Ian.