From: Ewan Mellor Subject: Re: [patch] loopback block device confliction is fixed. Date: Fri, 2 Dec 2005 15:56:35 +0000 Message-ID: <20051202155635.GI15814@leeni.uk.xensource.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Satoshi Uchida Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Wed, Nov 30, 2005 at 12:04:36PM +0900, Satoshi Uchida wrote: > Hi. > > I found cause of problem that loopback devices is not connect when more > than two loopback block devices is used. > The cause is setup these loopback block devices concurrently, so that > these devices indicate same loopback devices. > (show log file ... message.log) > > I attach tentative patch for this problem. (block.patch) > This patch is that searching is stopped if free loop back device is > found. > Process is very fast, so that in my environments, confliction is not > observed. > > I think that good resolution is provide lock mechanism. Thanks for your analysis and your tentative patch. You were right that a better fix was to provide a lock mechanism, and that's what I've done. Cheers, Ewan.