<div>Hi</div><div><br></div><div>I have problems in writes that hang for more than 7 seconds because of the the kthreadd daemon keeping a mutex locked for too long.</div><div>Is there someone who might be able to help me with that?</div>
<div>I saw that a lot of changes were done on the XFS quota support in later kernels, but the patch list is too long between my kernel and the changed quota system.</div><div><br></div><div>process 411 ([khubd], kthreadd)</div>
<div>  pid = 411, tgid = 411, parent = 2, real parent = 2</div><div>  baduaddr = 0x00000000, badvaddr = 0x00000000, state = 2, flags = 0x80208040</div><div>  policy = 0, prio = 115, static prio = 115, normal prio = 115, rt prio = 0</div>
<div>  pc = vmlinux_flash.elf/context_switch+0x3ac (kernel/sched.c:2668)</div><div>                schedule (kernel/sched.c:4496)</div><div>  kernel stack</div><div>    vmlinux_flash.elf/schedule_timeout+0x24 (kernel/timer.c:1264)</div>
<div>    vmlinux_flash.elf/do_wait_for_common+0xd8 (kernel/sched.c:4715)</div><div>                wait_for_common (kernel/sched.c:4732)</div><div>    vmlinux_flash.elf/xfs_qm_sync+0x110 (fs/xfs/quota/xfs_qm.c:1076)</div>
<div>    vmlinux_flash.elf/xfs_sync+0x1c (fs/xfs/xfs_vfsops.c:255)</div><div>    vmlinux_flash.elf/xfs_fs_sync_super+0x3c (fs/xfs/linux-2.6/xfs_super.c:1202)</div><div>    vmlinux_flash.elf/fsync_super+0xc (fs/super.c:270)</div>
<div><br></div><div><br></div><div><div>process 1082 <b>(this one takes too long and my watchdog doesn&#39;t like that)</b></div><div>  pid = 1082, tgid = 230, parent = 228, real parent = 228</div><div>  baduaddr = 0x00000000, badvaddr = 0x00000000, state = 2, flags = 0x00422140</div>
<div>  policy = 0, prio = 120, static prio = 120, normal prio = 120, rt prio = 0</div><div>  pc = vmlinux_flash.elf/context_switch+0x3ac (kernel/sched.c:2668)</div><div>                schedule (kernel/sched.c:4496)</div>
<div>  kernel stack</div><div>    vmlinux_flash.elf/__mutex_lock_common+0x108 (kernel/mutex.c:182)</div><div>                __mutex_lock_slowpath (kernel/mutex.c:321)</div><div>    vmlinux_flash.elf/xfs_trans_dqresv+0x50 (fs/xfs/quota/xfs_trans_dquot.c:628)</div>
<div>    vmlinux_flash.elf/xfs_trans_reserve_quota_bydquots+0xc0 (fs/xfs/quota/xfs_trans_dquot.c:792)</div><div>    vmlinux_flash.elf/xfs_trans_reserve_quota_nblks+0x40 (fs/xfs/quota/xfs_trans_dquot.c:847)</div><div>    vmlinux_flash.elf/xfs_iomap_write_direct+0x36c (fs/xfs/xfs_iomap.c:486)</div>
<div>    vmlinux_flash.elf/xfs_iomap+0x250 (fs/xfs/xfs_iomap.c:247)</div><div>    vmlinux_flash.elf/__xfs_get_blocks+0xb8 (fs/xfs/linux-2.6/xfs_aops.c:1345)</div><div>    vmlinux_flash.elf/xfs_get_blocks_direct+0x14 (fs/xfs/linux-2.6/xfs_aops.c:1426)</div>
<div>    vmlinux_flash.elf/get_more_blocks+0x54c (fs/direct-io.c:535)</div><div>                do_direct_IO (fs/direct-io.c:816)</div><div>                direct_io_worker (fs/direct-io.c:998)</div><div>                __blockdev_direct_IO (fs/direct-io.c:1209)</div>
<div>    vmlinux_flash.elf/blockdev_direct_IO_no_locking+0xf0 (include/linux/fs.h:2010)</div><div>                xfs_vm_direct_IO (fs/xfs/linux-2.6/xfs_aops.c:1506)</div><div>    vmlinux_flash.elf/generic_file_direct_write+0x148 (mm/filemap.c:2102)</div>
<div>    vmlinux_flash.elf/xfs_write+0x460 (fs/xfs/linux-2.6/xfs_lrw.c:745)</div><div>    vmlinux_flash.elf/do_sync_write+0xc8 (fs/read_write.c:305)</div><div>    vmlinux_flash.elf/sys_write+0x50 (fs/read_write.c:386)</div>
<div>    vmlinux_flash.elf/stack_done+0xdc (arch/mips/kernel/scall32-o32.S:59)</div></div><div><br></div><div><br></div><div>Best regards</div><div><br></div><div>Maarten Vergouwe</div><div>TASS Belgium</div>