From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757214Ab0JDWsc (ORCPT ); Mon, 4 Oct 2010 18:48:32 -0400 Received: from newpeace.netnation.com ([204.174.223.7]:52170 "EHLO peace.netnation.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751558Ab0JDWsb (ORCPT ); Mon, 4 Oct 2010 18:48:31 -0400 Date: Mon, 4 Oct 2010 15:48:30 -0700 From: Simon Kirby To: linux-kernel@vger.kernel.org, xfs@oss.sgi.com Subject: 2.6.35.6 XFS: Inconsistent lock state Message-ID: <20101004224830.GJ30524@hostway.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Out of the blue, while running postfix+mailscanner: ================================= [ INFO: inconsistent lock state ] 2.6.35.6-hw #1 --------------------------------- inconsistent {RECLAIM_FS-ON-W} -> {IN-RECLAIM_FS-W} usage. MailScanner/28712 [HC0[0]:SC0[0]:HE1:SE1] takes: (&(&ip->i_iolock)->mr_lock#2){++++?+}, at: [] xfs_ilock+0xf5/0x100 {RECLAIM_FS-ON-W} state was registered at: [] mark_held_locks+0x74/0xa0 [] lockdep_trace_alloc+0xe5/0xf0 [] __alloc_pages_nodemask+0x77/0x6d0 [] grab_cache_page_write_begin+0x85/0xd0 [] block_write_begin_newtrunc+0x8a/0xe0 [] block_write_begin+0x3e/0x80 [] xfs_vm_write_begin+0x25/0x30 [] generic_file_buffered_write+0x106/0x230 [] xfs_file_aio_write+0x842/0x8c0 [] do_sync_write+0xd1/0x120 [] vfs_write+0xcb/0x1a0 [] sys_write+0x50/0x90 [] system_call_fastpath+0x16/0x1b irq event stamp: 34471 hardirqs last enabled at (34471): [] _raw_spin_unlock_irqrestore+0x3f/0x70 hardirqs last disabled at (34470): [] _raw_spin_lock_irqsave+0x2d/0x90 softirqs last enabled at (34314): [] __do_softirq+0x19f/0x1f0 softirqs last disabled at (34309): [] call_softirq+0x1c/0x30 other info that might help us debug this: 2 locks held by MailScanner/28712: #0: (&mm->mmap_sem){++++++}, at: [] do_page_fault+0xe7/0x430 #1: (shrinker_rwsem){++++..}, at: [] shrink_slab+0x38/0x180 stack backtrace: Pid: 28712, comm: MailScanner Not tainted 2.6.35.6-hw #1 Call Trace: [] print_usage_bug+0x190/0x1f0 [] mark_lock+0x4b0/0x6c0 [] ? check_usage_forwards+0x0/0x120 [] __lock_acquire+0x89d/0x1e20 [] ? native_sched_clock+0x20/0x80 [] ? radix_tree_delete+0x1c9/0x2e0 [] lock_acquire+0xe9/0x120 [] ? xfs_ilock+0xf5/0x100 [] ? trace_hardirqs_off+0xd/0x10 [] down_write_nested+0x42/0x90 [] ? xfs_ilock+0xf5/0x100 [] xfs_ilock+0xf5/0x100 [] xfs_ireclaim+0xa8/0xe0 [] xfs_reclaim_inode+0x18f/0x260 [] xfs_inode_ag_walk+0x74/0x140 [] ? xfs_reclaim_inode+0x0/0x260 [] xfs_inode_ag_iterator+0x80/0xd0 [] ? xfs_reclaim_inode+0x0/0x260 [] xfs_reclaim_inode_shrink+0x85/0x90 [] shrink_slab+0x125/0x180 [] try_to_free_pages+0x23e/0x480 [] __alloc_pages_nodemask+0x3db/0x6d0 [] do_wp_page+0x1ae/0x7f0 [] handle_mm_fault+0x5be/0x840 [] ? do_page_fault+0xe7/0x430 [] do_page_fault+0x1eb/0x430 [] ? _raw_spin_unlock_irq+0x2b/0x40 [] ? finish_task_switch+0x74/0xf0 [] ? finish_task_switch+0x0/0xf0 [] ? schedule+0x4c8/0x820 [] ? trace_hardirqs_off_thunk+0x3a/0x3c [] page_fault+0x25/0x30 Simon-