Re: [PATCH 1/4] fs: do not drop inode_lock in dispose_list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Oct 25, 2010 at 04:33:53PM +1100, Dave Chinner wrote:
> On Sun, Oct 24, 2010 at 07:40:24PM +0200, Christoph Hellwig wrote:
> > 
> > Despite the comment above it we can not safely drop the lock here.
> > invalidate_list is called from many other places that just umount.
> > Also switch to proper list macros now that we never drop the lock.
> > 
> > Signed-off-by: Christoph Hellwig <hch@xxxxxx>
> 
> What tree are these patches against - a couple of them don't quite
> apply to Al's merge-stem tree...

Not sure whether it's my merge, something in Al's tree series or
something brought in from the post-2.6.36 tree, but it goes splat
pretty quickly (xfstest 013) with:

[  302.233778] BUG: unable to handle kernel NULL pointer dereference at 0000000000000008
[  302.235129] IP: [<ffffffff8114cc3a>] __put_super+0x2a/0x80
[  302.235997] PGD 7a98a067 PUD 7a98b067 PMD 0
[  302.236024] Oops: 0002 [#1] SMP
[  302.236024] last sysfs file: /sys/devices/virtio-pci/virtio1/block/vda/removable
[  302.236024] CPU 1
[  302.236024] Modules linked in:
[  302.236024]
[  302.236024] Pid: 2523, comm: flush-253:0 Not tainted 2.6.36-dgc+ #577 /Bochs
[  302.236024] RIP: 0010:[<ffffffff8114cc3a>]  [<ffffffff8114cc3a>] __put_super+0x2a/0x80
[  302.236024] RSP: 0018:ffff88007b6a3c60  EFLAGS: 00010246
[  302.236024] RAX: ffff88007cf3c820 RBX: ffff88007c3e1000 RCX: ffff88007b6a3c60
[  302.236024] RDX: 0000000000000000 RSI: ffff88007b1f5220 RDI: ffff88007c3e1000
[  302.236024] RBP: ffff88007b6a3c70 R08: ffff88007b6a3c60 R09: ffff88007c1eb800
[  302.236024] R10: ffff88007b6a3c60 R11: 0000000000000001 R12: ffff88007c199778
[  302.236024] R13: ffff88007619b1d0 R14: ffff88007c199808 R15: ffffffff81d427e0
[  302.236024] FS:  0000000000000000(0000) GS:ffff88007fd00000(0000) knlGS:0000000000000000
[  302.236024] CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[  302.236024] CR2: 0000000000000008 CR3: 000000007a989000 CR4: 00000000000006e0
[  302.236024] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[  302.236024] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[  302.236024] Process flush-253:0 (pid: 2523, threadinfo ffff88007b6a2000, task ffff88007c91b040)
[  302.236024] Stack:
[  302.236024]  ffff88007b6a3c70 ffff88007c3e1000 ffff88007b6a3c90 ffffffff8114d135
[  302.236024] <0> ffff88007b6a3c90 ffff88007c3e1000 ffff88007b6a3ce0 ffffffff8116e010
[  302.236024] <0> ffff88007b6a3d30 ffff88007c3e1068 0000000000000000 ffff88007b461ec0
[  302.236024] Call Trace:
[  302.236024]  [<ffffffff8114d135>] put_super+0x25/0x40
[  302.236024]  [<ffffffff8116e010>] writeback_inodes_wb+0x130/0x180
[  302.236024]  [<ffffffff8116e2fb>] wb_writeback+0x29b/0x410
[  302.236024]  [<ffffffff8105fb89>] ? default_spin_lock_flags+0x9/0x10
[  302.236024]  [<ffffffff817f6a4f>] ? _raw_spin_lock_irqsave+0x2f/0x40
[  302.236024]  [<ffffffff8116e507>] wb_do_writeback+0x97/0x1e0
[  302.236024]  [<ffffffff8116e702>] bdi_writeback_thread+0xb2/0x270
[  302.236024]  [<ffffffff8116e650>] ? bdi_writeback_thread+0x0/0x270
[  302.236024]  [<ffffffff8109f976>] kthread+0x96/0xa0
[  302.236024]  [<ffffffff81036de4>] kernel_thread_helper+0x4/0x10
[  302.236024]  [<ffffffff8109f8e0>] ? kthread+0x0/0xa0
[  302.236024]  [<ffffffff81036de0>] ? kernel_thread_helper+0x0/0x10
[  302.236024] Code: 90 55 48 89 e5 53 48 83 ec 08 0f 1f 44 00 00 8b 87 a8 00 00 00 48 89 fb ff c8 89 87 a8 00 00 00 85 c0 75
[  302.236024] RIP  [<ffffffff8114cc3a>] __put_super+0x2a/0x80
[  302.236024]  RSP <ffff88007b6a3c60>
[  302.236024] CR2: 0000000000000008
[  302.265338] ---[ end trace 64118e3d92267d36 ]---

Cheers,

Dave.
-- 
Dave Chinner
david@xxxxxxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux