From: Christian Limpach Subject: Re: [Patch] Always call blkdev_put when destroying a vbd in device backend Date: Sat, 28 Aug 2004 01:01:10 +0100 Sender: xen-devel-admin@lists.sourceforge.net Message-ID: <20040828000110.GI17300@cl.cam.ac.uk> References: <20040827163622.B18740@cs.ucsd.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20040827163622.B18740@cs.ucsd.edu> Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: xen-devel@lists.sourceforge.net List-Id: xen-devel@lists.xenproject.org On Fri, Aug 27, 2004 at 04:36:22PM -0700, Michael Vrable wrote: > The code for the block backend device in XenoLinux 2.6.8.1 doesn't call > blkdev_put on all code paths that can destroy a vbd. Previously, > blkdev_put was only called from vbd_shrink. I've added the call to > vbd_destroy and destroy_all_vbds. > > With the old code, the kernel running in domain-0 would believe the > devices exported to another domain to still be in use, even after the > other domain was shutdown. (This was obvious when using LVM, since the > logical volumes were still listed as open, and a warning message was > printed when shutting down LVM.) This patch should fix that. Thanks. I've applied the patch. christian ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click