On 27/11/08 14:15 +0100, Louis Rilling wrote: > On 27/11/08 20:39 +0900, [EMAIL PROTECTED] wrote: > > Louis Rilling: > > > There still is a similar bug in aufs 20081711. Same kernel as earlier, > > > same > > > setup, and similar scenario. Instead of a simple 'cp' you will see > > > 'mkdir' = > > > and > > > 'mv', which are actually altering the ro branch on the NFS server. This > > > act= > > > ually > > > consists in installing kernel modules on the branch while NFSroot clients > > > a= > > > re > > > running their SYSV boot scripts. > > > > Here is a temporary patch for you. > > This patch may not fix all of your problem, but I hope it will push the > > situation better. > > When you meet the problem, please send me back the blocked tasks and > > aufs debug info. > > Thanks, I'll try to reproduce the issue soon.
I could not trigger the bug yet, but while trying to (with your patch) I got the
following lockdep warning:
[ 1210.029855] =============================================
[ 1210.029931] [ INFO: possible recursive locking detected ]
[ 1210.029970] 2.6.25-elric #10
[ 1210.030000] ---------------------------------------------
[ 1210.030037] nfsd/2662 is trying to acquire lock:
[ 1210.030072] (&rw->rwsem){----}, at: [<ffffffff883c9931>]
aufs_destroy_inode+0x181/0x1b7 [aufs]
[ 1210.030169]
[ 1210.030170] but task is already holding lock:
[ 1210.030230] (&rw->rwsem){----}, at: [<ffffffff883fb624>]
aufs_fh_to_dentry+0x93/0x417 [aufs]
[ 1210.030321]
[ 1210.030322] other info that might help us debug this:
[ 1210.030381] 2 locks held by nfsd/2662:
[ 1210.030412] #0: (hash_sem){..--}, at: [<ffffffff882e5801>]
nfsd+0x189/0x2b4 [nfsd]
[ 1210.030497] #1: (&rw->rwsem){----}, at: [<ffffffff883fb624>]
aufs_fh_to_dentry+0x93/0x417 [aufs]
[ 1210.030590]
[ 1210.030591] stack backtrace:
[ 1210.030642] Pid: 2662, comm: nfsd Not tainted 2.6.25-elric #10
[ 1210.030679]
[ 1210.030680] Call Trace:
[ 1210.030744] [<ffffffff80253b7b>] __lock_acquire+0x8e0/0xc7a
[ 1210.030788] [<ffffffff80254362>] lock_acquire+0x88/0xb2
[ 1210.030836] [<ffffffff883c9931>] :aufs:aufs_destroy_inode+0x181/0x1b7
[ 1210.030879] [<ffffffff8042f7a0>] down_read+0x32/0x3b
[ 1210.030925] [<ffffffff883c9931>] :aufs:aufs_destroy_inode+0x181/0x1b7
[ 1210.030984] [<ffffffff883f9def>] :aufs:decode_by_ino+0x177/0x1c8
[ 1210.031029] [<ffffffff883fb6f0>] :aufs:aufs_fh_to_dentry+0x15f/0x417
[ 1210.031029] [<ffffffff8043063b>] _read_unlock+0x17/0x20
[ 1210.031029] [<ffffffff88288593>] :exportfs:exportfs_decode_fh+0x30/0x1e1
[ 1210.031029] [<ffffffff882e7c32>] :nfsd:nfsd_acceptable+0x0/0xd3
[ 1210.031029] [<ffffffff8029dc3d>] kfree+0x20d/0x224
[ 1210.031029] [<ffffffff80252e07>] trace_hardirqs_on+0xf5/0x118
[ 1210.031029] [<ffffffff80242023>] set_current_groups+0x15e/0x16a
[ 1210.031029] [<ffffffff882ede96>] :nfsd:nfsd_setuser+0x11f/0x20d
[ 1210.031029] [<ffffffff882e77bb>] :nfsd:nfsd_setuser_and_check_port+0x52/0x57
[ 1210.031029] [<ffffffff882e7f52>] :nfsd:fh_verify+0x24d/0x48f
[ 1210.031029] [<ffffffff882e9149>] :nfsd:nfsd_open+0x1f/0x16f
[ 1210.031029] [<ffffffff882e9468>] :nfsd:nfsd_write+0x91/0xe2
[ 1210.031029] [<ffffffff80252e07>] trace_hardirqs_on+0xf5/0x118
[ 1210.031029] [<ffffffff882f02e3>] :nfsd:nfsd3_proc_write+0xe6/0x105
[ 1210.031029] [<ffffffff882e5249>] :nfsd:nfsd_dispatch+0xde/0x1b6
[ 1210.031029] [<ffffffff88295854>] :sunrpc:svc_process+0x3eb/0x707
[ 1210.031029] [<ffffffff882e5678>] :nfsd:nfsd+0x0/0x2b4
[ 1210.031029] [<ffffffff882e5818>] :nfsd:nfsd+0x1a0/0x2b4
[ 1210.031029] [<ffffffff8020d028>] child_rip+0xa/0x12
[ 1210.031029] [<ffffffff8020c5bc>] restore_args+0x0/0x30
[ 1210.031029] [<ffffffff882e5678>] :nfsd:nfsd+0x0/0x2b4
[ 1210.031029] [<ffffffff8020d01e>] child_rip+0x0/0x12
[ 1210.031029]
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
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=/
