Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752692AbZA1ROA (ORCPT ); Wed, 28 Jan 2009 12:14:00 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751718AbZA1RNm (ORCPT ); Wed, 28 Jan 2009 12:13:42 -0500 Received: from casper.infradead.org ([85.118.1.10]:49050 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751655AbZA1RNl (ORCPT ); Wed, 28 Jan 2009 12:13:41 -0500 Subject: Re: 2.6.28 regression: hard lockup when interrupting cdda2wav From: Peter Zijlstra To: Matthias Reichl Cc: Linux Kernel , "jens.axboe" , Tejun Heo , FUJITA Tomonori , James Bottomley In-Reply-To: <20090128164140.GA5557@horus.com> References: <20090128164140.GA5557@horus.com> Content-Type: text/plain Date: Wed, 28 Jan 2009 18:13:25 +0100 Message-Id: <1233162805.10992.60.camel@laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.24.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2983 Lines: 72 On Wed, 2009-01-28 at 17:41 +0100, Matthias Reichl wrote: > > I think I found a regression in the 2.6.28 kernel (tested with 2.6.28 > and 2.6.28.2). With 2.6.27.6 and 2.6.27.13 everything is fine. > > If I interrupt cdda2wav (pressing ctrl-c) while extracting an audio > track, the kernel locks up. SysReq (or sending a break via the > serial console) doesn't work, only pressing reset helps. > > I tested with cdda2wav from the original cdrtools code, version > 2.01.01a57pre2 and some older versions. > > To reproduce this bug, try "cdda2wav -dev=x,y,z 1" and then press > ctrl-c while the track is being ripped. > > Here are the messages printed to the console: > > ============================================= > [ INFO: possible recursive locking detected ] > 2.6.28.2-dbg #1 > --------------------------------------------- > swapper/0 is trying to acquire lock: > (&q->__queue_lock){.+..}, at: [] blk_put_request+0x25/0x60 > > but task is already holding lock: > (&q->__queue_lock){.+..}, at: [] blk_end_io+0x5a/0xa0 > > other info that might help us debug this: > 1 lock held by swapper/0: > #0: (&q->__queue_lock){.+..}, at: [] blk_end_io+0x5a/0xa0 > > stack backtrace: > Pid: 0, comm: swapper Not tainted 2.6.28.2-dbg #1 > Call Trace: > [] __lock_acquire+0x1797/0x1930 > [] error_exit+0x29/0xa9 > [] sg_rq_end_io+0x0/0x2e0 > [] lock_acquire+0x9a/0xe0 > [] blk_put_request+0x25/0x60 > [] _spin_lock_irqsave+0x43/0x90 > [] blk_put_request+0x25/0x60 > [] blk_put_request+0x25/0x60 > [] sg_finish_rem_req+0xa4/0x100 > [] sg_rq_end_io+0x278/0x2e0 > [] end_that_request_last+0x61/0x260 > [] blk_end_io+0x68/0xa0 > [] scsi_end_request+0x41/0xd0 > [] scsi_io_completion+0x130/0x470 > [] blk_done_softirq+0x75/0x90 > [] __do_softirq+0x9b/0x180 > [] native_sched_clock+0x13/0x70 > [] call_softirq+0x1c/0x30 > [] do_softirq+0x65/0xa0 > [] irq_exit+0xa5/0xb0 > [] do_IRQ+0x107/0x1d0 > [] ret_from_intr+0x0/0xf > [] mwait_idle+0x56/0x60 > [] mwait_idle+0x4d/0x60 > [] cpu_idle+0x63/0xc0 Indeed, it looks like sg_rq_end_io() goes funny by calling blk_put_request() where those without ->end_io() method call __blk_put_request(). CC'ed those who actually know what the code is about. -- 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/