On Sat, 2003-03-08 at 21:47, Andrew Morton wrote: > missing spin_unlock() in sysfs_remove_dir() > > > > fs/sysfs/dir.c | 2 +- > 1 files changed, 1 insertion(+), 1 deletion(-) > > diff -puN fs/sysfs/dir.c~sysfs_remove_dir-dcache_lock fs/sysfs/dir.c > --- 25/fs/sysfs/dir.c~sysfs_remove_dir-dcache_lock 2003-03-08 21:42:18.000000000 -0800 > +++ 25-akpm/fs/sysfs/dir.c 2003-03-08 21:42:32.000000000 -0800 > @@ -106,7 +106,7 @@ void sysfs_remove_dir(struct kobject * k > pr_debug(" done\n"); > node = dentry->d_subdirs.next; > } > - > + spin_unlock(&dcache_lock); > up(&dentry->d_inode->i_sem); > d_invalidate(dentry); > simple_rmdir(parent->d_inode,dentry); > > _ > That fixed the init crash, but there still seems to be something wrong in sysfs. mm3 has Patrick's patch to sysfs_remove_dir (fs/sysfs/dir.c:71), but I'm still getting this crash when I insert a cardbus ethernet card: ------------[ cut here ]------------ kernel BUG at include/linux/dcache.h:266! invalid operand: 0000 CPU: 0 EIP: 0060:[] Not tainted EFLAGS: 00010246 EIP is at d_alloc+0x16b/0x1f0 eax: 00000000 ebx: cbfa15e4 ecx: c11fbc9c edx: c11f1e24 esi: cbfa1664 edi: c11fbc9c ebp: c11f1df4 esp: c11f1de0 ds: 007b es: 007b ss: 0068 Process events/0 (pid: 3, threadinfo=c11f0000 task=c11f4c80) Stack: cbfa1664 c11fbc9c fffffff4 c11fbc9c cbd6b634 c11f1e10 c01588dd c11fbc9c c11f1e24 01adad40 c028ec59 c11fbc9c c11f1e3c c0179b7d c11f1e24 c11fbc9c c11f1e3c c028ec59 00000004 01adad40 00000000 cbd6b6a0 c11fbc9c c11f1e58 Call Trace: [] lookup_hash+0x5d/0xa0 [] sysfs_get_dentry+0x5d/0x70 [] sysfs_create_file+0x4e/0xa0 [] populate_dir+0x42/0x50 [] create_dir+0x30/0x50 [] kobject_add+0xc5/0xe0 [] device_add+0x93/0x140 [] device_initialize+0x10/0x50 [] cb_alloc+0x2ad/0x2f0 [] unreset_socket+0xa2/0x100 [] setup_socket+0xca/0xe0 [] parse_events+0x89/0xf0 [] yenta_bh+0x3c/0x50 [] worker_thread+0x1bd/0x2a0 [] yenta_bh+0x0/0x50 [] default_wake_function+0x0/0x20 [] ret_from_fork+0x6/0x14 [] default_wake_function+0x0/0x20 [] worker_thread+0x0/0x2a0 [] kernel_thread_helper+0x5/0x10 Code: 0f 0b 0a 01 48 87 28 c0 8b 45 08 ff 00 83 48 04 08 89 43 64 J