Date: Wed, 02 Apr 2008 22:59:23 -0700 From: soralx@cydem.org To: freebsd-bugs@freebsd.org Cc: bu7cher@yandex.ru, vwe@freebsd.org, sos@freebsd.org Subject: Re: kern/122045: [ata][panic] reiniting detached ata channel kills the kernel Message-ID: <20080402225923.592309aa@soralx> In-Reply-To: <687901206812604@webmail50.yandex.ru> References: <687901206812604@webmail50.yandex.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
> > Synopsis: [ata][panic] reiniting detached ata channel kills the kernel > > State-Changed-From-To: feedback->open > > State-Changed-By: vwe > > State-Changed-When: Sat Mar 29 15:48:13 UTC 2008 > > State-Changed-Why: > > feedback received by private mail, not a problem with mounted filesystem > > system panics without active mounts on the detached drive > > (clean umount before detach done). > > ata(4) freed resources and mutexes when you are detaching it. So, you > should attach it first before reinit, because it is trying to get access > to freed resources. Try this patch. > error = ata_reinit(device); > - ata_start(device); > break; this works nicely, thanks! [root@soralx ~]# atacontrol reinit ata8 atacontrol: ioctl(IOCATAREINIT): Device not configured Master: no device present Slave: no device present so it leaves just one question: how to send a STOP command to an ATA device? (akin to `camcontrol stop`) > WBR, Andrey V. Elsukov [SorAlx] ridin' VS1400
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080402225923.592309aa>