From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kacur Subject: 2.6.33.4-rt20 inconsistent lock state Date: Wed, 19 May 2010 21:19:45 +0200 (CEST) Message-ID: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: linux-rt-users To: LKML , Thomas Gleixner Return-path: Received: from mail-fx0-f46.google.com ([209.85.161.46]:38530 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753487Ab0ESTUR (ORCPT ); Wed, 19 May 2010 15:20:17 -0400 Sender: linux-rt-users-owner@vger.kernel.org List-ID: ================================= [ INFO: inconsistent lock state ] 2.6.33.4-rt20-debug #1 --------------------------------- inconsistent {RECLAIM_FS-ON-W} -> {IN-RECLAIM_FS-W} usage. kswapd0/416 [HC0[0]:SC0[0]:HE1:SE1] takes: (&(&ip->i_iolock)->mr_lock#2){++++?+}, at: [] xfs_ilock+0x42/ 0x15a [xfs] {RECLAIM_FS-ON-W} state was registered at: [] mark_held_locks+0x52/0x70 [] lockdep_trace_alloc+0xa4/0xc1 [] __alloc_pages_nodemask+0xe8/0xc9e [] alloc_pages_current+0xc7/0xd0 [] __page_cache_alloc+0xd0/0xd9 [] grab_cache_page_write_begin+0xb6/0x17c [] block_write_begin+0x54/0x180 [] xfs_vm_write_begin+0x2a/0x2c [xfs] [] generic_file_buffered_write+0x147/0x3a8 [] xfs_write+0x950/0xce3 [xfs] [] xfs_file_aio_write+0xdb/0xe7 [xfs] [] do_sync_write+0xd0/0x143 [] vfs_write+0x161/0x1cf [] sys_write+0x63/0x8a [] system_call_fastpath+0x16/0x1b irq event stamp: 3763347 hardirqs last enabled at (3763347): [] _raw_spin_unlock_irqre store+0x5b/0xab hardirqs last disabled at (3763346): [] _raw_spin_lock_irqsave +0x1e/0x9c softirqs last enabled at (0): [] copy_process+0x827/0x1d66 softirqs last disabled at (0): [<(null)>] (null) other info that might help us debug this: 2 locks held by kswapd0/416: #0: (shrinker_rwsem){+.+...}, at: [] shrink_slab+0x53/0x21b #1: (&xfs_mount_list_lock){++++.-}, at: [] rt_down_read+0x10 /0x12 stack backtrace: Pid: 416, comm: kswapd0 Not tainted 2.6.33.4-rt20-debug #1 Call Trace: [] valid_state+0x178/0x18b [] ? save_stack_trace+0x2f/0x62 [] ? check_usage_forwards+0x0/0x8e [] mark_lock+0x113/0x22f [] __lock_acquire+0x3a5/0xd32 [] ? rt_spin_lock_slowunlock+0x6a/0x94 [] ? mark_lock+0x2d/0x22f [] ? xfs_ilock+0x42/0x15a [xfs] [] lock_acquire+0xd4/0xf1 [] ? xfs_ilock+0x42/0x15a [xfs] [] anon_down_write_nested+0x4f/0x9d [] ? xfs_ilock+0x42/0x15a [xfs] [] ? rt_spin_lock_fastunlock.clone.0+0x71/0x7a [] xfs_ilock+0x42/0x15a [xfs] [] xfs_ireclaim+0xae/0xcc [xfs] [] xfs_reclaim_inode+0x138/0x146 [xfs] [] xfs_inode_ag_walk+0xf9/0x1c5 [xfs] [] ? xfs_reclaim_inode+0x0/0x146 [xfs] [] xfs_inode_ag_iterator+0xb8/0x178 [xfs] [] ? xfs_reclaim_inode+0x0/0x146 [xfs] [] ? rt_down_read+0x10/0x12 [] xfs_reclaim_inode_shrink+0x9a/0x1a0 [xfs] [] shrink_slab+0x151/0x21b [] balance_pgdat+0x4a0/0x798 [] ? isolate_pages_global+0x0/0x337 [] kswapd+0x2df/0x2f5 [] ? autoremove_wake_function+0x0/0x4f [] ? need_resched+0x3f/0x45 [] ? kswapd+0x0/0x2f5 [] kthread+0xa4/0xac [] kernel_thread_helper+0x4/0x10 [] ? restore_args+0x0/0x30 [] ? kthread+0x0/0xac [] ? kernel_thread_helper+0x0/0x10