On Thu, Oct 16, 2008 at 12:39:00AM +0900, [EMAIL PROTECTED] wrote:
> Louis Rilling:
> > > To investigate your deadlock, I'd like to ask you to enable
> > > both of CONFIG_AUFS_DEBUG_LOCK and CONFIG_MAGIC_SYSRQ, and press
> > > MagicSysRq + A after the deadlock happend.
> > 
> > Here is the result:
> 
> Thanx.
> The log is helpful and I think I could find the cause.
> Here is a patch for you. Please apply it again the latest (plain) CVS
> tree. But you may meet another lockdep warning. If so, please report
> again.

Hi,

Sorry for having delayed my tests. I don't see the issue with aufs 20081020.
As you predicted, I got another lockdep warning:

[18411.576389] aufs 20081020
[18469.247812] 
[18469.247815] =============================================
[18469.247885] [ INFO: possible recursive locking detected ]
[18469.247920] 2.6.25-elric #10
[18469.247948] ---------------------------------------------
[18469.247983] nfsd/2607 is trying to acquire lock:
[18469.248016]  (&rw->rwsem){----}, at: [<ffffffff8841a900>] 
aufs_release_dir+0x78/0x13e [aufs]
[18469.248105] 
[18469.248106] but task is already holding lock:
[18469.248159]  (&rw->rwsem){----}, at: [<ffffffff8842ee69>] 
aufs_fh_to_dentry+0x106/0x489 [aufs]
[18469.248246] 
[18469.248247] other info that might help us debug this:
[18469.248303] 2 locks held by nfsd/2607:
[18469.248333]  #0:  (hash_sem){..--}, at: [<ffffffff8830a801>] 
nfsd+0x189/0x2b4 [nfsd]
[18469.248414]  #1:  (&rw->rwsem){----}, at: [<ffffffff8842ee69>] 
aufs_fh_to_dentry+0x106/0x489 [aufs]
[18469.248505] 
[18469.248506] stack backtrace:
[18469.248557] Pid: 2607, comm: nfsd Not tainted 2.6.25-elric #10
[18469.248593] 
[18469.248594] Call Trace:
[18469.248647]  [<ffffffff80253b7b>] __lock_acquire+0x8e0/0xc7a
[18469.248688]  [<ffffffff80254362>] lock_acquire+0x88/0xb2
[18469.248738]  [<ffffffff8841a900>] :aufs:aufs_release_dir+0x78/0x13e
[18469.248780]  [<ffffffff8042f7a0>] down_read+0x32/0x3b
[18469.248829]  [<ffffffff8841a900>] :aufs:aufs_release_dir+0x78/0x13e
[18469.248870]  [<ffffffff802a30f3>] __fput+0xbd/0x18b
[18469.248922]  [<ffffffff8842d6e5>] :aufs:au_lkup_by_ino+0x1c8/0x21c
[18469.248976]  [<ffffffff8842d34a>] :aufs:au_mnt_get+0xf0/0xfb
[18469.249029]  [<ffffffff8842eff4>] :aufs:aufs_fh_to_dentry+0x291/0x489
[18469.249090]  [<ffffffff882be46e>] :sunrpc:sunrpc_cache_lookup+0x30/0x132
[18469.249095]  [<ffffffff882bd3d7>] :sunrpc:cache_check+0x66/0x435
[18469.249095]  [<ffffffff882aa593>] :exportfs:exportfs_decode_fh+0x30/0x1e1
[18469.249095]  [<ffffffff8830cc32>] :nfsd:nfsd_acceptable+0x0/0xd3
[18469.249095]  [<ffffffff8029dc3d>] kfree+0x20d/0x224
[18469.249095]  [<ffffffff80252e07>] trace_hardirqs_on+0xf5/0x118
[18469.249095]  [<ffffffff80242023>] set_current_groups+0x15e/0x16a
[18469.249095]  [<ffffffff88312e96>] :nfsd:nfsd_setuser+0x11f/0x20d
[18469.249095]  [<ffffffff8830c7bb>] :nfsd:nfsd_setuser_and_check_port+0x52/0x57
[18469.249095]  [<ffffffff8830cf52>] :nfsd:fh_verify+0x24d/0x48f
[18469.249095]  [<ffffffff8029d142>] __kmalloc+0x142/0x176
[18469.249095]  [<ffffffff88314ea3>] :nfsd:nfsd3_proc_getattr+0x7d/0xb5
[18469.249095]  [<ffffffff8830a249>] :nfsd:nfsd_dispatch+0xde/0x1b6
[18469.249095]  [<ffffffff882b7854>] :sunrpc:svc_process+0x3eb/0x707
[18469.249095]  [<ffffffff8830a678>] :nfsd:nfsd+0x0/0x2b4
[18469.249095]  [<ffffffff8830a818>] :nfsd:nfsd+0x1a0/0x2b4
[18469.249095]  [<ffffffff8020d028>] child_rip+0xa/0x12
[18469.249095]  [<ffffffff8020c5bc>] restore_args+0x0/0x30
[18469.249095]  [<ffffffff8830a678>] :nfsd:nfsd+0x0/0x2b4
[18469.249095]  [<ffffffff8020d01e>] child_rip+0x0/0x12
[18469.249095] 

Thanks,

Louis

-- 
Dr Louis Rilling                        Kerlabs
Skype: louis.rilling                    Batiment Germanium
Phone: (+33|0) 6 80 89 08 23            80 avenue des Buttes de Coesmes
http://www.kerlabs.com/                 35700 Rennes

Attachment: signature.asc
Description: Digital signature

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

Reply via email to