PM / hibernate xfs lock up / xfs_reclaim_inodes_ag

Christoph
2011-07-12T16:05:06Z

Hi!

I'd like you to have a look into this issue:

pm-hibernate locks up when using xfs while "Preallocating image memory".

https://bugzilla.kernel.org/show_bug.cgi?id=33622

I got at least this backtrace (2.6.39.3)

tia

chris

SysRq : Show Blocked State

pm-hibernate D 0000000000000000 0 3638 3637 0x00000000
ffff8800017bf918 0000000000000082 ffff8800017be010 ffff880000000000
ffff8800017be010 ffff88000b8a6170 0000000000013900 ffff8800017bffd8
ffff8800017bffd8 0000000000013900 ffffffff8148b020 ffff88000b8a6170
Call Trace:
[<ffffffff81344ce2>] schedule_timeout+0x22/0xbb
[<ffffffff81344b64>] wait_for_common+0xcb/0x148
[<ffffffff810408ea>] ? try_to_wake_up+0x18c/0x18c
[<ffffffff81345527>] ? down_write+0x2d/0x31
[<ffffffff81344c7b>] wait_for_completion+0x18/0x1a
[<ffffffffa02374da>] xfs_reclaim_inode+0x74/0x258 [xfs]
[<ffffffffa0237853>] xfs_reclaim_inodes_ag+0x195/0x264 [xfs]
[<ffffffffa0237974>] xfs_reclaim_inode_shrink+0x52/0x90 [xfs]
[<ffffffff810c4e21>] shrink_slab+0xdb/0x151
[<ffffffff810c625a>] do_try_to_free_pages+0x204/0x39a
[<ffffffff8134ce4e>] ? apic_timer_interrupt+0xe/0x20
[<ffffffff810c647f>] shrink_all_memory+0x8f/0xa8
[<ffffffff810cc41a>] ? next_online_pgdat+0x20/0x41
[<ffffffff8107937d>] hibernate_preallocate_memory+0x1c4/0x30f
[<ffffffff811a8fa2>] ? kobject_put+0x47/0x4b
[<ffffffff81077eb2>] hibernation_snapshot+0x45/0x281
[<ffffffff810781bf>] hibernate+0xd1/0x1b8
[<ffffffff81076c58>] state_store+0x57/0xce
[<ffffffff811a8d0b>] kobj_attr_store+0x17/0x19
[<ffffffff81152bda>] sysfs_write_file+0xfc/0x138
[<ffffffff810fca74>] vfs_write+0xa9/0x105
[<ffffffff810fcb89>] sys_write+0x45/0x6c
[<ffffffff8134c492>] system_call_fastpath+0x16/0x1b

kworker/0:2 D 0000000000000000 0 379 2 0x00000000
ffff88000ea99b90 0000000000000046 ffff88000b8ff840 0000000000000000
ffff88000ea98010 ffff88000c319ac0 0000000000013900 ffff88000ea99fd8
ffff88000ea99fd8 0000000000013900 ffffffff8148b020 ffff88000c319ac0
Call Trace:
[<ffffffff8134515f>] __mutex_lock_common+0x12e/0x195
[<ffffffff813451da>] __mutex_lock_slowpath+0x14/0x16
[<ffffffff813452a8>] mutex_lock+0x1e/0x38
[<ffffffffa0237738>] xfs_reclaim_inodes_ag+0x7a/0x264 [xfs]
[<ffffffffa02379cc>] ? xfs_reclaim_inodes+0x1a/0x1a [xfs]
[<ffffffffa02379ca>] xfs_reclaim_inodes+0x18/0x1a [xfs]
[<ffffffffa02379e9>] xfs_reclaim_worker+0x1d/0x29 [xfs]
[<ffffffff81059ec4>] process_one_work+0x1de/0x2ec
[<ffffffff8105bf60>] worker_thread+0x13d/0x262
[<ffffffff8105be23>] ? manage_workers+0x194/0x194
[<ffffffff8105f25a>] kthread+0x7d/0x85
[<ffffffff8134d5a4>] kernel_thread_helper+0x4/0x10
[<ffffffff8105f1dd>] ? kthread_worker_fn+0x148/0x148
[<ffffffff8134d5a0>] ? gs_change+0x13/0x13