From mboxrd@z Thu Jan 1 00:00:00 1970 From: Prashant <0xfffff0@gmail.com> Subject: spinlock recursion in scsi_end_request() (kernel 2.6.24) Date: Mon, 17 May 2010 17:02:39 +0530 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from mail-px0-f174.google.com ([209.85.212.174]:36417 "EHLO mail-px0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755171Ab0EQLck (ORCPT ); Mon, 17 May 2010 07:32:40 -0400 Received: by pxi5 with SMTP id 5so2470346pxi.19 for ; Mon, 17 May 2010 04:32:40 -0700 (PDT) Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: linux-ide@vger.kernel.org Hi, I have a board with backplane for SATA disks. Sometimes when I unplug a disk while IO is going on, I get following problem. Has anybody of you experienced this before? Sometimes spinlock owner is kblockd, sometimes it is scsi_eh. sd 7:0:0:0: rejecting I/O to offline device sd 7:0:0:0: rejecting I/O to offline device sd 7:0:0:0: [sda] Result: hostbyte=0x01 driverbyte=0x00 BUG: spinlock recursion on CPU#0, kblockd/0/54 lock: cf53a138, .magic: dead4ead, .owner: kblockd/0/54, .owner_cpu: 0 [] (dump_stack+0x0/0x14) from [] (spin_bug+0x90/0xa4) [] (spin_bug+0x0/0xa4) from [] (_raw_spin_lock+0x50/0x15c) r5:20000013 r4:cf53a138 [] (_raw_spin_lock+0x0/0x15c) from [] (_spin_lock_irqsave+0x2c/0x34) [] (_spin_lock_irqsave+0x0/0x34) from [] (scsi_end_request+0x94/0xdc) r5:cfffe3e0 r4:cf539e84 [] (scsi_end_request+0x0/0xdc) from [] (scsi_io_completion+0x314/0x330) r8:00000000 r7:cf539e84 r6:00010000 r5:cfffe3e0 r4:00000000 [] (scsi_io_completion+0x0/0x330) from [] (scsi_finish_command+0x84/0x88) [] (scsi_finish_command+0x0/0x88) from [] (scsi_softirq_done+0xbc/0x114) r6:cfffe3e0 r5:00000005 r4:00000bb8 [] (scsi_softirq_done+0x0/0x114) from [] (blk_done_softirq+0x7c/0x9c) r7:c0373760 r6:0000000a r5:00000001 r4:cfcafcd0 [] (blk_done_softirq+0x0/0x9c) from [] (__do_softirq+0x64/0xd0) r4:c03737bc [] (__do_softirq+0x0/0xd0) from [] (do_softirq+0x4c/0x68) Thanks, prashant