From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755580Ab1HSWDq (ORCPT ); Fri, 19 Aug 2011 18:03:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37814 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751629Ab1HSWDo (ORCPT ); Fri, 19 Aug 2011 18:03:44 -0400 Date: Fri, 19 Aug 2011 17:57:54 -0400 From: Dave Jones To: Linux Kernel Cc: jaxboe@fusionio.com Subject: 3.1.0-rc2 block related lockdep report. Message-ID: <20110819215754.GA12746@redhat.com> Mail-Followup-To: Dave Jones , Linux Kernel , jaxboe@fusionio.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Just got this while running kvm. (this is from the host) Dave ================================= [ INFO: inconsistent lock state ] 3.1.0-rc2+ #139 --------------------------------- inconsistent {RECLAIM_FS-ON-W} -> {IN-RECLAIM_FS-W} usage. qemu-kvm/8194 [HC0[0]:SC0[0]:HE1:SE1] takes: (pcpu_alloc_mutex){+.+.?.}, at: [] pcpu_alloc+0x6f/0x80b {RECLAIM_FS-ON-W} state was registered at: [] mark_held_locks+0x6d/0x95 [] lockdep_trace_alloc+0x9f/0xc2 [] slab_pre_alloc_hook+0x1e/0x4f [] __kmalloc+0x64/0x12f [] pcpu_mem_alloc+0x5e/0x67 [] pcpu_extend_area_map+0x2b/0xd4 [] pcpu_alloc+0x1bf/0x80b [] __alloc_percpu+0x10/0x12 [] kmem_cache_open+0x2cc/0x2d6 [] kmem_cache_create+0x1d9/0x281 [] acpi_os_create_cache+0x1d/0x2d [] acpi_ut_create_caches+0x26/0xb0 [] acpi_ut_init_globals+0xe/0x244 [] acpi_initialize_subsystem+0x35/0xae [] acpi_early_init+0x5c/0xf7 [] start_kernel+0x3dd/0x3f7 [] x86_64_start_reservations+0xaf/0xb3 [] x86_64_start_kernel+0x102/0x111 irq event stamp: 140939 hardirqs last enabled at (140939): [] __slab_alloc+0x41c/0x43d hardirqs last disabled at (140938): [] __slab_alloc+0x45/0x43d softirqs last enabled at (140484): [] __do_softirq+0x1fd/0x257 softirqs last disabled at (140461): [] call_softirq+0x1c/0x30 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(pcpu_alloc_mutex); lock(pcpu_alloc_mutex); *** DEADLOCK *** 1 lock held by qemu-kvm/8194: #0: (&mm->mmap_sem){++++++}, at: [] do_page_fault+0x188/0x39d stack backtrace: Pid: 8194, comm: qemu-kvm Tainted: G W 3.1.0-rc2+ #139 Call Trace: [] ? up+0x39/0x3e [] print_usage_bug+0x1e7/0x1f8 [] ? save_stack_trace+0x2c/0x49 [] ? print_irq_inversion_bug.part.19+0x1a0/0x1a0 [] mark_lock+0x106/0x220 [] __lock_acquire+0x394/0xcf7 [] ? _raw_spin_unlock+0x32/0x54 [] ? _raw_spin_unlock+0x47/0x54 [] ? deactivate_slab+0x293/0x2b9 [] ? pcpu_alloc+0x6f/0x80b [] lock_acquire+0xf3/0x13e [] ? pcpu_alloc+0x6f/0x80b [] ? mutex_lock_nested+0x3b/0x40 [] ? pcpu_alloc+0x6f/0x80b [] __mutex_lock_common+0x65/0x44a [] ? pcpu_alloc+0x6f/0x80b [] ? trace_hardirqs_on_caller+0x12d/0x164 [] ? __slab_alloc+0x428/0x43d [] ? kzalloc_node+0x14/0x16 [] mutex_lock_nested+0x3b/0x40 [] pcpu_alloc+0x6f/0x80b [] ? kzalloc_node+0x14/0x16 [] ? __kmalloc_node+0x146/0x16d [] ? kzalloc_node+0x14/0x16 [] __alloc_percpu+0x10/0x12 [] blkio_alloc_blkg_stats+0x1d/0x31 [] throtl_alloc_tg+0x3a/0xdf [] blk_throtl_bio+0x14b/0x38e [] ? __cycles_2_ns+0xe/0x3a [] ? local_clock+0x14/0x4c [] ? native_sched_clock+0x34/0x36 [] generic_make_request+0x2e8/0x419 [] ? _raw_spin_unlock_irqrestore+0x45/0x7a [] ? test_set_page_writeback+0xcc/0xfd [] submit_bio+0xde/0xfd [] ? account_page_writeback+0x13/0x15 [] ? test_set_page_writeback+0xeb/0xfd [] swap_writepage+0x94/0x9f [] shmem_writepage+0x192/0x1d8 [] shrink_page_list+0x402/0x795 [] shrink_inactive_list+0x22c/0x3e6 [] ? mark_held_locks+0x6d/0x95 [] shrink_zone+0x445/0x588 [] ? wakeup_flusher_threads+0xcf/0xd8 [] ? wakeup_flusher_threads+0x32/0xd8 [] do_try_to_free_pages+0x107/0x318 [] try_to_free_pages+0xd5/0x175 [] __alloc_pages_nodemask+0x501/0x7b7 [] ? trace_preempt_on+0x15/0x28 [] ? lock_release_holdtime.part.10+0x59/0x62 [] alloc_pages_vma+0xf5/0xfa [] do_huge_pmd_anonymous_page+0xb3/0x274 [] ? pmd_offset+0x19/0x3f [] handle_mm_fault+0xfd/0x1b8 [] ? do_page_fault+0x188/0x39d [] do_page_fault+0x356/0x39d [] ? mark_lock+0x2d/0x220 [] ? time_hardirqs_off+0x1b/0x2f [] ? trace_hardirqs_off_caller+0x3f/0x9c [] ? trace_hardirqs_off_thunk+0x3a/0x3c [] page_fault+0x25/0x30 [] ? file_read_actor+0x39/0x12a [] generic_file_aio_read+0x3fd/0x655 [] ? __cycles_2_ns+0xe/0x3a [] ? local_clock+0x14/0x4c [] do_sync_read+0xbf/0xff [] ? security_file_permission+0x2e/0x33 [] ? rw_verify_area+0xb6/0xd3 [] vfs_read+0xac/0xf3 [] ? fget_light+0x97/0xa2 [] sys_pread64+0x5d/0x79 [] system_call_fastpath+0x16/0x1b