From mkb@incubus.de  Thu Dec 22 20:05:08 2005
Return-Path: <mkb@incubus.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id E4FD916A41F
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 22 Dec 2005 20:05:08 +0000 (GMT)
	(envelope-from mkb@incubus.de)
Received: from luzifer.incubus.de (incubus.de [80.237.207.83])
	by mx1.FreeBSD.org (Postfix) with ESMTP id D706843D55
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 22 Dec 2005 20:05:05 +0000 (GMT)
	(envelope-from mkb@incubus.de)
Received: from drjekyll.mkbuelow.net (p54AA89C2.dip0.t-ipconnect.de [84.170.137.194])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by luzifer.incubus.de (Postfix) with ESMTP id 76B584020C
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 22 Dec 2005 21:05:03 +0100 (CET)
Received: from drjekyll.mkbuelow.net (mkb@localhost [127.0.0.1])
	by drjekyll.mkbuelow.net (8.13.4/8.13.3) with ESMTP id jBMK52xT002866
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 22 Dec 2005 21:05:03 +0100 (CET)
	(envelope-from mkb@drjekyll.mkbuelow.net)
Received: (from mkb@localhost)
	by drjekyll.mkbuelow.net (8.13.4/8.13.3/Submit) id jBMK527g002865;
	Thu, 22 Dec 2005 21:05:02 +0100 (CET)
	(envelope-from mkb)
Message-Id: <200512222005.jBMK527g002865@drjekyll.mkbuelow.net>
Date: Thu, 22 Dec 2005 21:05:02 +0100 (CET)
From: Matthias Buelow <mkb@incubus.de>
Reply-To: Matthias Buelow <mkb@incubus.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: aborting burncd may keep drive "locked"
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         90820
>Category:       kern
>Synopsis:       [ata] [burncd]: aborting burncd may keep drive "locked"
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    linimon
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 22 20:10:12 GMT 2005
>Closed-Date:    Sat Apr 21 19:13:44 GMT 2007
>Last-Modified:  Sat Apr 21 19:13:44 GMT 2007
>Originator:     Matthias Buelow
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
>Environment:
System: FreeBSD drjekyll.mkbuelow.net 5.4-STABLE FreeBSD 5.4-STABLE #7: Thu Sep 29 04:29:12 CEST 2005 mkb@drjekyll.mkbuelow.net:/usr/obj/usr/src/sys/DRJEKYLL i386


	
>Description:

	Aborting burncd (by SIGINT) while it is burning a CD
	keeps the drive spinning, the "burning" light blinking,
	and the tray locked. This seems to go on indefinitely
	(my patience ran out after ca. 15 minutes.)
	The process is gone, nothing has the device still open
	(according to fstat) yet the driver doesn't seem to have
	noticed it.

	The drive is a:
	acd1: CDRW <HL-DT-ST GCE-8483B/B105> at ata0-slave PIO4

	Only detaching the ATA channel via atacontrol made the
	kernel give up its grip of the drive.

	Maybe the driver doesn't clean up properly when the
	device gets closed (or the process that has it open
	exits?)

>How-To-Repeat:

	burncd -f /dev/acd1 data isofile fixate
	interrupt it while it's burning (with ^C)
	watch burncd exit and the drive continue spinning
	and locking the tray for at least 15 minutes.
>Fix:

	A workaround:
	atacontrol detach 0, followed by atacontrol attach 0.


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Thu Apr 19 06:36:39 UTC 2007 
State-Changed-Why:  
Does this problem still recur on FreeBSD 6.2? 


Responsible-Changed-From-To: freebsd-bugs->linimon 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu Apr 19 06:36:39 UTC 2007 
Responsible-Changed-Why:  

http://www.freebsd.org/cgi/query-pr.cgi?pr=90820 
State-Changed-From-To: feedback->closed 
State-Changed-By: remko 
State-Changed-When: Sat Apr 21 19:13:40 UTC 2007 
State-Changed-Why:  
Matthias cannot verify this and Lowell reports that he cannot reproduce 
it. Thanks for the feedback! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=90820 
>Unformatted:
