Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964940AbWJ3Saa (ORCPT ); Mon, 30 Oct 2006 13:30:30 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965023AbWJ3Saa (ORCPT ); Mon, 30 Oct 2006 13:30:30 -0500 Received: from rtr.ca ([64.26.128.89]:40712 "EHLO mail.rtr.ca") by vger.kernel.org with ESMTP id S964940AbWJ3Sa3 (ORCPT ); Mon, 30 Oct 2006 13:30:29 -0500 Message-ID: <454644C1.4080702@rtr.ca> Date: Mon, 30 Oct 2006 13:30:25 -0500 From: Mark Lord User-Agent: Thunderbird 1.5.0.7 (X11/20060909) MIME-Version: 1.0 To: Jens Axboe Cc: Arjan van de Ven , IDE/ATA development list , Linux Kernel , mingo@elte.hu Subject: Re: 2.6.19-rc3-git7: scsi_device_unbusy: inconsistent lock state References: <45460D52.3000404@rtr.ca> <20061030144315.GG4563@kernel.dk> <1162220239.2948.27.camel@laptopd505.fenrus.org> <20061030154444.GH4563@kernel.dk> <1162225002.2948.45.camel@laptopd505.fenrus.org> <20061030162621.GK4563@kernel.dk> <1162225915.2948.49.camel@laptopd505.fenrus.org> <20061030175224.GB14055@kernel.dk> <45463C5B.7070900@rtr.ca> <45464064.2090108@rtr.ca> <20061030181645.GF14055@kernel.dk> In-Reply-To: <20061030181645.GF14055@kernel.dk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3401 Lines: 92 Jens Axboe wrote: > Can you do: > > $ gdb vmlinux > l *cfq_set_request+0x351 > > assuming you built with DEBUG_INFO enabled. Here it is again, from kernel with FRAME_POINTERS and DEBUG_INFO enabled: ================================= [ INFO: inconsistent lock state ] 2.6.19-rc3-git7-ml #6 --------------------------------- inconsistent {in-softirq-W} -> {softirq-on-W} usage. startproc/3964 [HC0[0]:SC0[0]:HE1:SE1] takes: (&q->__queue_lock){-+..}, at: [] cfq_set_request+0x33e/0x3a0 {in-softirq-W} state was registered at: [] mark_lock+0x79/0x600 [] __lock_acquire+0x64d/0xc20 [] lock_acquire+0x5d/0x80 [] _spin_lock+0x2b/0x40 [] scsi_device_unbusy+0x67/0xa0 [] scsi_finish_command+0x1c/0xa0 [] scsi_softirq_done+0xcf/0xf0 [] blk_done_softirq+0x6b/0x80 [] __do_softirq+0x92/0x110 [] do_softirq+0x65/0x70 [] ksoftirqd+0x85/0xd0 [] kthread+0xe8/0xf0 [] kernel_thread_helper+0x7/0x1c [] 0xffffffff irq event stamp: 1927 hardirqs last enabled at (1927): [] kmem_cache_alloc+0x75/0xb0 hardirqs last disabled at (1926): [] kmem_cache_alloc+0x22/0xb0 softirqs last enabled at (0): [] copy_process+0x353/0x1290 softirqs last disabled at (0): [<00000000>] 0x0 other info that might help us debug this: no locks held by startproc/3964. stack backtrace: [] dump_trace+0x1c8/0x200 [] show_trace_log_lvl+0x1a/0x30 [] show_trace+0x12/0x20 [] dump_stack+0x19/0x20 [] print_usage_bug+0x243/0x250 [] mark_lock+0x5a2/0x600 [] __lock_acquire+0x672/0xc20 [] lock_acquire+0x5d/0x80 [] _spin_lock+0x2b/0x40 [] cfq_set_request+0x33e/0x3a0 [] elv_set_request+0x1f/0x50 [] get_request+0x21d/0x250 [] get_request_wait+0x1c/0x100 [] __make_request+0x5d/0x330 [] generic_make_request+0x174/0x230 [] submit_bio+0x60/0x110 [] mpage_bio_submit+0x1c/0x30 [] mpage_readpages+0x103/0x140 [] reiserfs_readpages+0x19/0x20 [] __do_page_cache_readahead+0x161/0x220 [] blockable_page_cache_readahead+0x62/0xc0 [] page_cache_readahead+0x11f/0x1d0 [] do_generic_mapping_read+0x501/0x540 [] generic_file_aio_read+0xf3/0x240 [] do_sync_read+0xd0/0x110 [] vfs_read+0x94/0x160 [] sys_read+0x3d/0x70 [] sysenter_past_esp+0x56/0x8d [] 0xb7f84410 ======================= (gdb) l *cfq_set_request+0x33e 0xc021780e is in cfq_set_request (block/cfq-iosched.c:1224). 1219 if (unlikely(!cfqd)) 1220 return; 1221 1222 spin_lock(cfqd->queue->queue_lock); 1223 1224 cfqq = cic->cfqq[ASYNC]; 1225 if (cfqq) { 1226 struct cfq_queue *new_cfqq; 1227 new_cfqq = cfq_get_queue(cfqd, CFQ_KEY_ASYNC, cic->ioc->task, 1228 GFP_ATOMIC); - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/