| To: | David Chinner <dgc@xxxxxxx> |
|---|---|
| Subject: | [xfs-masters] Re: xfs_io "BUG: lock held when returning to user space!" on suspend |
| From: | Peter Zijlstra <peterz@xxxxxxxxxxxxx> |
| Date: | Thu, 03 Apr 2008 16:07:00 +0200 |
| Cc: | Jeremy Fitzhardinge <jeremy@xxxxxxxx>, xfs-masters@xxxxxxxxxxx, Linux Kernel Mailing List <linux-kernel@xxxxxxxxxxxxxxx> |
| In-reply-to: | <1207230794.8514.825.camel@twins> |
| References: | <47F3D76E.1070400@goop.org> <20080402215720.GI103491721@sgi.com> <1207230794.8514.825.camel@twins> |
| Reply-to: | xfs-masters@xxxxxxxxxxx |
| Sender: | xfs-masters-bounce@xxxxxxxxxxx |
On Thu, 2008-04-03 at 15:53 +0200, Peter Zijlstra wrote:
> On Thu, 2008-04-03 at 07:57 +1000, David Chinner wrote:
> > On Wed, Apr 02, 2008 at 11:58:54AM -0700, Jeremy Fitzhardinge wrote:
> > > I'm getting this:
> > >
> > > ================================================
> > > [ BUG: lock held when returning to user space! ]
> > > ------------------------------------------------
> > > xfs_io/18796 is leaving the kernel with locks still held!
> > > 1 lock held by xfs_io/18796:
> > > #0: (&type->s_umount_key#19){----}, at: [<c048c9ac>] get_super+0x42/0x87
> > >
> > > when I suspend, possibly during an xfs-freeze. There don't seem to be
> > > any
> > > ill-effects.
> >
> > Yup, both the sb->s_umount and bdev->bd_mount_sem seaphores are held
> > across freeze_bdev()/thaw_bdev(), and they are issued via separate
> > ioctls generally from separate processes. Not great design, but not
> > a bug....
>
> Actually... we do consider that bugs.
http://lkml.org/lkml/2007/10/27/135
Where Linus says:
Definitely not a sane thing to do. It should use ref-counting and/or a
single bit to say "busy".
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [xfs-masters] Re: xfs_io "BUG: lock held when returning to user space!" on suspend, Peter Zijlstra |
|---|---|
| Next by Date: | [xfs-masters] Re: xfs_io "BUG: lock held when returning to user space!" on suspend, David Chinner |
| Previous by Thread: | [xfs-masters] Re: xfs_io "BUG: lock held when returning to user space!" on suspend, Peter Zijlstra |
| Next by Thread: | [xfs-masters] Re: xfs_io "BUG: lock held when returning to user space!" on suspend, David Chinner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |