From: Daniel Stodden Subject: Re: [PATCH] Fix blkback/blktap sysfs read bug. Date: Thu, 21 Jan 2010 10:01:44 -0800 Message-ID: <1264096904.12544.3704.camel@agari.van.xensource.com> References: <20100119141338.GA22249@joejin-pc.cn.oracle.com> <4B55E9E7020000780002AC17@vpn.id2.novell.com> <20100120020605.GA25697@joejin-pc.cn.oracle.com> <4B56C2DB020000780002AE45@vpn.id2.novell.com> <20100120105136.GA6801@joejin-pc.cn.oracle.com> <4B56F1B6020000780002AEFA@vpn.id2.novell.com> <20100120114518.GA10851@joejin-pc.cn.oracle.com> <1264040197.12544.3679.camel@agari.van.xensource.com> <20100121031307.GA29727@joejin-pc.cn.oracle.com> <1264058809.6898.181.camel@ramone.somacoma.net> <20100121074928.GA31296@joejin-pc.cn.oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20100121074928.GA31296@joejin-pc.cn.oracle.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Joe Jin Cc: "greg.marsden@oracle.com" , "xen-devel@lists.xensource.com" , "deepak.patel@oracle.com" , Keir Fraser , Jan Beulich List-Id: xen-devel@lists.xenproject.org On Thu, 2010-01-21 at 02:49 -0500, Joe Jin wrote: > > The reason is in sysfs_deactivate(), which will sync callers against any > > remaining thread in .show() > > - show() hangs on the lock > > - the lock holder in sysfs_remove_group(), > > waiting for show() to complete. > > > > Pardon me -- I'm not entirely sure where/how these patches are currently > > submitted and merged. I suppose yours are only for linux-2.6.18.hg, not > > e.g. pvops? Then sorry for any confusion. > > > > Daniel, > > Thanks a lot of your comments, it really help for me, yes my patch based > linux-2.6.18.hg branch. As Jan have pointed out in previous email, it should > be sysfs's issue, looked like later kernel sysfs have fixed the issue? Yes. Later sysfs won't need the locking. Ordering sysfs removal before backend release will be sufficient. Daniel