From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Beregalov Subject: next-20090220: XFS: inconsistent lock state Date: Fri, 20 Feb 2009 20:52:59 +0300 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: Received: from ey-out-2122.google.com ([74.125.78.24]:37127 "EHLO ey-out-2122.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755398AbZBTRxC (ORCPT ); Fri, 20 Feb 2009 12:53:02 -0500 Sender: linux-next-owner@vger.kernel.org List-ID: To: "linux-next@vger.kernel.org" , LKML , xfs@oss.sgi.com Hi [ INFO: inconsistent lock state ] 2.6.29-rc5-next-20090220 #2 --------------------------------- inconsistent {RECLAIM_FS-ON-W} -> {IN-RECLAIM_FS-R} usage. kswapd0/324 [HC0[0]:SC0[0]:HE1:SE1] takes: (&(&ip->i_lock)->mr_lock){+++++?}, at: [] xfs_ilock+0xaa/0x120 {RECLAIM_FS-ON-W} state was registered at: [] mark_held_locks+0x69/0x90 [] lockdep_trace_alloc+0x41/0xb0 [] kmem_cache_alloc+0x2d/0x100 [] radix_tree_preload+0x6a/0xf0 [] xfs_iget+0x3db/0x650 [] xfs_trans_iget+0x208/0x250 [] xfs_ialloc+0xc1/0x700 [] xfs_dir_ialloc+0xa9/0x340 [] xfs_create+0x3e1/0x690 [] xfs_vn_mknod+0x63/0xf0 [] xfs_vn_mkdir+0xe/0x10 [] vfs_mkdir+0x8c/0xd0 [] sys_mkdirat+0x106/0x120 [] sys_mkdir+0x13/0x20 [] system_call_fastpath+0x16/0x1b [] 0xffffffffffffffff irq event stamp: 240653 hardirqs last enabled at (240653): [] __rcu_read_unlock+0xa4/0xc0 hardirqs last disabled at (240652): [] __rcu_read_unlock+0x59/0xc0 softirqs last enabled at (233948): [] __do_softirq+0x139/0x150 softirqs last disabled at (233943): [] call_softirq+0x1c/0x30 other info that might help us debug this: 2 locks held by kswapd0/324: #0: (shrinker_rwsem){++++..}, at: [] shrink_slab+0x32/0x1c0 #1: (iprune_mutex){+.+.-.}, at: [] shrink_icache_memory+0x84/0x2a0 stack backtrace: Pid: 324, comm: kswapd0 Not tainted 2.6.29-rc5-next-20090220 #2 Call Trace: [] print_usage_bug+0x17d/0x190 [] mark_lock+0x31d/0x450 [] ? check_usage_forwards+0x0/0xc0 [] __lock_acquire+0x40d/0x12a0 [] lock_acquire+0x91/0xc0 [] ? xfs_ilock+0xaa/0x120 [] down_read_nested+0x50/0x90 [] ? xfs_ilock+0xaa/0x120 [] xfs_ilock+0xaa/0x120 [] xfs_free_eofblocks+0x84/0x280 [] ? __lock_acquire+0x2cc/0x12a0 [] xfs_inactive+0xee/0x540 [] xfs_fs_clear_inode+0x67/0x70 [] clear_inode+0x9a/0x120 [] dispose_list+0x30/0x110 [] shrink_icache_memory+0x248/0x2a0 [] shrink_slab+0x15c/0x1c0 [] kswapd+0x56a/0x6b0 [] ? finish_task_switch+0x46/0x110 [] ? isolate_pages_global+0x0/0x270 [] ? autoremove_wake_function+0x0/0x40 [] ? kswapd+0x0/0x6b0 [] kthread+0x56/0x90 [] child_rip+0xa/0x20 [] ? finish_task_switch+0x89/0x110 [] ? _spin_unlock_irq+0x36/0x60 [] ? restore_args+0x0/0x30 [] ? kthread+0x0/0x90 [] ? child_rip+0x0/0x20