mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* VFS locking & HFS problems (2.4.6pre6)
@ 2001-06-29 15:09 Benjamin Herrenschmidt
  2001-06-29 15:52 ` Andrew Morton
  2001-06-29 19:53 ` Alexander Viro
  0 siblings, 2 replies; 5+ messages in thread
From: Benjamin Herrenschmidt @ 2001-06-29 15:09 UTC (permalink / raw)
  To: linux-kernel

I've had a deadlock twice with 2.4.6pre6 today. It's an SMP kernel
running on an UP box (a PowerBook Pismo).

The deadlock happen in the HFS filesystem in hfs_cat_put(), apparently
(quickly looking at addresses) in spin_lock().

I don't have the complete backtrace at hand right now, but it basically
went up to kswapd without anything evidently getting that spinlock,
I'll try to gather more details.

So my question: Is there any document explaining the various locking
requirements & re-entrency possibilities in a filesystem.

What I think might happen after a quick look is that HFS may be causing
schedule() to be called while holding the spinlock, and gets then
re-entered from another process context. I have to look at it in more
detail (is there an HFS maintainer ?) but some background informations
on VFS locking & reentrancy issues would be helpful.

Ben.





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

end of thread, other threads:[~2001-06-29 19:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <E15G08g-0000UO-00@the-village.bc.nu>
2001-06-29 16:10 ` VFS locking & HFS problems (2.4.6pre6) Benjamin Herrenschmidt
2001-06-29 16:29   ` Alan Cox
2001-06-29 15:09 Benjamin Herrenschmidt
2001-06-29 15:52 ` Andrew Morton
2001-06-29 19:53 ` Alexander Viro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®