NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/47097: ahcisata(4) triggers panic when disk I/O error is caused



The following reply was made to PR kern/47097; it has been noted by GNATS.

From: "T.SHIOZAKI" <tshiozak%bsdclub.org@localhost>
To: bouyer%antioche.eu.org@localhost
Cc: gnats-bugs%NetBSD.org@localhost, kern-bug-people%NetBSD.org@localhost, 
gnats-admin%NetBSD.org@localhost,
        netbsd-bugs%NetBSD.org@localhost
Subject: Re: kern/47097: ahcisata(4) triggers panic when disk I/O error is
 caused
Date: Thu, 25 Oct 2012 06:41:06 +0900 (JST)

 > On Sat, Oct 20, 2012 at 03:50:00PM +0000, tshiozak%bsdclub.org@localhost 
 > wrote:
 > > when disk I/O error is caused, ahcisata(4) seems to call tsleep() under 
 > > interrupt context and it triggers panic.
 > > 
 > > call trace is here:
 > > 
 > > vpanic
 > > kern_assert
 > > callout_halt
 > > sleepq_block
 > > ahci_do_reset_drive
 > > ahci_reset_drive
 > > wddone
 > > ahci_bio_complete
 > > ahci_intr_port
 > > ahci_intr
 > 
 > The attached patch should work around it. But this is going to
 > delay() for half a second, which is bad. Something better is needed,
 > so we can reset the drive from the atabus thread.
 
 I confirmed that the patch fixes the problem.  Thanks.
 
 ---
 Takuya SHIOZAKI
 


Home | Main Index | Thread Index | Old Index