All of lore.kernel.org
 help / color / mirror / Atom feed
* xfs_io "BUG: lock held when returning to user space!" on suspend
@ 2008-04-02 18:58 Jeremy Fitzhardinge
  2008-04-02 21:57 ` David Chinner
  0 siblings, 1 reply; 5+ messages in thread
From: Jeremy Fitzhardinge @ 2008-04-02 18:58 UTC (permalink / raw)
  To: David Chinner; +Cc: xfs-masters, Linux Kernel Mailing List

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.

Thanks,
	J


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: xfs_io "BUG: lock held when returning to user space!" on suspend
  2008-04-02 18:58 xfs_io "BUG: lock held when returning to user space!" on suspend Jeremy Fitzhardinge
@ 2008-04-02 21:57 ` David Chinner
  2008-04-03 13:53   ` Peter Zijlstra
  0 siblings, 1 reply; 5+ messages in thread
From: David Chinner @ 2008-04-02 21:57 UTC (permalink / raw)
  To: Jeremy Fitzhardinge; +Cc: David Chinner, xfs-masters, Linux Kernel Mailing List

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....

Cheers,

Dave.
-- 
Dave Chinner
Principal Engineer
SGI Australian Software Group

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: xfs_io "BUG: lock held when returning to user space!" on suspend
  2008-04-02 21:57 ` David Chinner
@ 2008-04-03 13:53   ` Peter Zijlstra
  2008-04-03 14:07     ` Peter Zijlstra
  2008-04-04  1:50     ` David Chinner
  0 siblings, 2 replies; 5+ messages in thread
From: Peter Zijlstra @ 2008-04-03 13:53 UTC (permalink / raw)
  To: David Chinner; +Cc: Jeremy Fitzhardinge, xfs-masters, Linux Kernel Mailing List

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.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: xfs_io "BUG: lock held when returning to user space!" on suspend
  2008-04-03 13:53   ` Peter Zijlstra
@ 2008-04-03 14:07     ` Peter Zijlstra
  2008-04-04  1:50     ` David Chinner
  1 sibling, 0 replies; 5+ messages in thread
From: Peter Zijlstra @ 2008-04-03 14:07 UTC (permalink / raw)
  To: David Chinner; +Cc: Jeremy Fitzhardinge, xfs-masters, Linux Kernel Mailing List

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". 


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: xfs_io "BUG: lock held when returning to user space!" on suspend
  2008-04-03 13:53   ` Peter Zijlstra
  2008-04-03 14:07     ` Peter Zijlstra
@ 2008-04-04  1:50     ` David Chinner
  1 sibling, 0 replies; 5+ messages in thread
From: David Chinner @ 2008-04-04  1:50 UTC (permalink / raw)
  To: Peter Zijlstra
  Cc: David Chinner, Jeremy Fitzhardinge, xfs-masters,
	Linux Kernel Mailing List

On Thu, Apr 03, 2008 at 03:53:14PM +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.

Ok, you're welcome to fix it then. It's way below my care factor
right now....

FWIW, I did suggest that this needed fixing before FIFREEZE/FITHAW
are introduced, but that hasn't happened yet.

Cheers,

Dave.
-- 
Dave Chinner
Principal Engineer
SGI Australian Software Group

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-04-04  1:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-02 18:58 xfs_io "BUG: lock held when returning to user space!" on suspend Jeremy Fitzhardinge
2008-04-02 21:57 ` David Chinner
2008-04-03 13:53   ` Peter Zijlstra
2008-04-03 14:07     ` Peter Zijlstra
2008-04-04  1:50     ` David Chinner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.