From owner-freebsd-bugs@FreeBSD.ORG Thu Apr 3 06:00:16 2008 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9841E1065674; Thu, 3 Apr 2008 06:00:16 +0000 (UTC) (envelope-from soralx@cydem.org) Received: from pd2mo2so.prod.shaw.ca (idcmail-mo1so.shaw.ca [24.71.223.10]) by mx1.freebsd.org (Postfix) with ESMTP id 8FC8C8FC29; Thu, 3 Apr 2008 06:00:09 +0000 (UTC) (envelope-from soralx@cydem.org) Received: from pd2mr3so.prod.shaw.ca (pd2mr3so-qfe3.prod.shaw.ca [10.0.141.108]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0JYQ005SBJB1DZ10@l-daemon>; Wed, 02 Apr 2008 23:59:25 -0600 (MDT) Received: from pn2ml4so.prod.shaw.ca ([10.0.121.148]) by pd2mr3so.prod.shaw.ca (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTP id <0JYQ00EXEJB1ZX60@pd2mr3so.prod.shaw.ca>; Wed, 02 Apr 2008 23:59:26 -0600 (MDT) Received: from soralx ([24.87.3.133]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0JYQ00HE3JB0VSH0@l-daemon>; Wed, 02 Apr 2008 23:59:25 -0600 (MDT) Date: Wed, 02 Apr 2008 22:59:23 -0700 From: soralx@cydem.org In-reply-to: <687901206812604@webmail50.yandex.ru> To: freebsd-bugs@freebsd.org Message-id: <20080402225923.592309aa@soralx> MIME-version: 1.0 X-Mailer: Claws Mail 3.3.0 (GTK+ 2.12.9; i386-portbld-freebsd7.0) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit References: <687901206812604@webmail50.yandex.ru> Cc: bu7cher@yandex.ru, vwe@freebsd.org, sos@freebsd.org Subject: Re: kern/122045: [ata][panic] reiniting detached ata channel kills the kernel X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2008 06:00:16 -0000 > > 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