From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752802Ab0IPHwf (ORCPT ); Thu, 16 Sep 2010 03:52:35 -0400 Received: from ebb05.tieto.com ([131.207.168.36]:55032 "EHLO ebb05.tieto.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752085Ab0IPHwe (ORCPT ); Thu, 16 Sep 2010 03:52:34 -0400 X-Greylist: delayed 901 seconds by postgrey-1.27 at vger.kernel.org; Thu, 16 Sep 2010 03:52:33 EDT X-AuditID: 83cfa824-b7b16ae000000a21-06-4c91c93bac06 From: Yang Ruirui Organization: Tieto China To: Alex Elder , , , Andrew Morton Subject: -mm: xfs lockdep warning Date: Thu, 16 Sep 2010 15:46:16 +0800 User-Agent: KMail/1.11.4 (Linux/2.6.36-rc4-mm1; KDE/4.2.4; x86_64; ; ) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <201009161546.16909.ruirui.r.yang@tieto.com> X-Brightmail-Tracker: AAAAARYGMzY= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, I got following lockdep warning, xfs related? [ 604.416384] ================================= [ 604.416625] [ INFO: inconsistent lock state ] [ 604.416625] 2.6.36-rc4-mm1 #2 [ 604.416625] --------------------------------- [ 604.416625] inconsistent {RECLAIM_FS-ON-W} -> {IN-RECLAIM_FS-W} usage. [ 604.416625] kswapd0/418 [HC0[0]:SC0[0]:HE1:SE1] takes: [ 604.416625] (&(&ip->i_iolock)->mr_lock#2){++++?+}, at: [] xfs_ilock+0x94/0x137 [ 604.416625] {RECLAIM_FS-ON-W} state was registered at: [ 604.416625] [] mark_held_locks+0x4d/0x6b [ 604.416625] [] lockdep_trace_alloc+0xb2/0xd7 [ 604.416625] [] kmem_cache_alloc+0x2a/0x126 [ 604.416625] [] kmem_zone_alloc+0x67/0xaf [ 604.416625] [] kmem_zone_zalloc+0xf/0x30 [ 604.416625] [] _xfs_trans_alloc+0x22/0x5f [ 604.416625] [] xfs_trans_alloc+0x9d/0xaa [ 604.416625] [] xfs_setattr+0x3d2/0x8b4 [ 604.416625] [] xfs_vn_setattr+0x16/0x1a [ 604.416625] [] notify_change+0x18f/0x27d [ 604.416625] [] do_truncate+0x6a/0x88 [ 604.416625] [] do_last+0x588/0x58f [ 604.416625] [] do_filp_open+0x23d/0x5db [ 604.416625] [] do_sys_open+0x5a/0xf0 [ 604.416625] [] sys_open+0x1b/0x1d [ 604.416625] [] system_call_fastpath+0x16/0x1b [ 604.416625] irq event stamp: 144829 [ 604.416625] hardirqs last enabled at (144829): [] _raw_spin_unlock_irqrestore+0x46/0x55 [ 604.416625] hardirqs last disabled at (144828): [] _raw_spin_lock_irqsave+0x24/0x58 [ 604.416625] softirqs last enabled at (142796): [] __do_softirq+0x1b6/0x1c7 [ 604.416625] softirqs last disabled at (142791): [] call_softirq+0x1c/0x28 [ 604.416625] [ 604.416625] other info that might help us debug this: [ 604.416625] 1 lock held by kswapd0/418: [ 604.416625] #0: (shrinker_rwsem){++++..}, at: [] shrink_slab+0x38/0x164 [ 604.416625] [ 604.416625] stack backtrace: [ 604.416625] Pid: 418, comm: kswapd0 Not tainted 2.6.36-rc4-mm1 #2 [ 604.416625] Call Trace: [ 604.416625] [] valid_state+0x18b/0x19e [ 604.416625] [] ? save_stack_trace+0x2a/0x48 [ 604.416625] [] ? check_usage_forwards+0x0/0x7e [ 604.416625] [] mark_lock+0x106/0x261 [ 604.416625] [] ? radix_tree_tag_clear+0xa5/0x108 [ 604.416625] [] __lock_acquire+0x3bb/0xe1f [ 604.416625] [] ? __lock_acquire+0xe10/0xe1f [ 604.416625] [] ? save_stack_trace+0x2a/0x48 [ 604.416625] [] ? __lock_acquire+0xe10/0xe1f [ 604.416625] [] ? radix_tree_delete+0xad/0x1b7 [ 604.416625] [] lock_acquire+0xd8/0x104 [ 604.416625] [] ? xfs_ilock+0x94/0x137 [ 604.416625] [] down_write_nested+0x4a/0x6d [ 604.416625] [] ? xfs_ilock+0x94/0x137 [ 604.416625] [] xfs_ilock+0x94/0x137 [ 604.416625] [] xfs_reclaim_inode+0x277/0x2c1 [ 604.416625] [] xfs_inode_ag_walk+0x8e/0xe9 [ 604.416625] [] ? xfs_reclaim_inode+0x0/0x2c1 [ 604.416625] [] xfs_inode_ag_iterator+0x64/0xc3 [ 604.416625] [] ? xfs_reclaim_inode+0x0/0x2c1 [ 604.416625] [] xfs_reclaim_inode_shrink+0x3c/0x83 [ 604.416625] [] shrink_slab+0xe1/0x164 [ 604.416625] [] kswapd+0x5e4/0x864 [ 604.416625] [] ? autoremove_wake_function+0x0/0x38 [ 604.416625] [] ? kswapd+0x0/0x864 [ 604.416625] [] kthread+0x81/0x89 [ 604.416625] [] kernel_thread_helper+0x4/0x10 [ 604.416625] [] ? watchdog+0x0/0x281 [ 604.416625] [] ? restore_args+0x0/0x30 [ 604.416625] [] ? kthread+0x0/0x89 [ 604.416625] [] ? kernel_thread_helper+0x0/0x10 -- Thanks Yang Ruirui