From dgilbert@trooper.velocet.ca  Mon Aug 10 14:12:30 1998
Received: from trooper.velocet.ca (host-066.canadiantire.ca [209.146.201.66])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA01965
          for <FreeBSD-gnats-submit@freebsd.org>; Mon, 10 Aug 1998 14:12:24 -0700 (PDT)
          (envelope-from dgilbert@trooper.velocet.ca)
Received: (from dgilbert@localhost)
	by trooper.velocet.ca (8.8.8/8.8.7) id RAA02440;
	Mon, 10 Aug 1998 17:11:57 -0400 (EDT)
	(envelope-from dgilbert)
Message-Id: <199808102111.RAA02440@trooper.velocet.ca>
Date: Mon, 10 Aug 1998 17:11:57 -0400 (EDT)
From: David Gilbert <dgilbert@velocet.ca>
Reply-To: dgilbert@velocet.ca
To: FreeBSD-gnats-submit@freebsd.org
Subject: CDROM prone to lock up.
X-Send-Pr-Version: 3.2

>Number:         7561
>Category:       kern
>Synopsis:       CDROM (wcd) is prone to lock up system/processes
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 10 14:20:00 PDT 1998
>Closed-Date:    Tue May 29 12:03:03 PDT 2001
>Last-Modified:  Tue May 29 12:03:52 PDT 2001
>Originator:     David Gilbert
>Release:        FreeBSD 2.2.6-RELEASE i386
>Organization:
Velocet Communications
>Environment:

	IDE drives/controllers probe as follows:

wdc0 at 0x1f0-0x1f7 irq 14 on isa
wdc0: unit 0 (wd0): <FUJITSU MPB3021ATU>
wd0: 2014MB (4124736 sectors), 4092 cyls, 16 heads, 63 S/T, 512 B/S
wdc1 at 0x170-0x177 irq 15 on isa
wdc1: unit 0 (wd2): <QUANTUM FIREBALL ST6.4A>
wd2: 6149MB (12594960 sectors), 13328 cyls, 15 heads, 63 S/T, 512 B/S
wdc1: unit 1 (atapi): <NEC                 CD-ROM DRIVE:282/4.46>, removable, dm
a, iordy
wcd0: 2067/4134Kb/sec, 128Kb cache, audio play, 16 volume levels, ejectable tray
wcd0: no disc inside, unlocked

>Description:

	If the root user types mount /cdrom (or someone runs xmcd) at the
'wrong' time, the device locks up, locking that process in the 'D' state
(according to ps).  The 'wrong' time is sometime shortly after the disc
is inserted into the drive and the door closes.

	The 'wrong' time occurs after the time when the device would
respond as not ready and before the time when it will mount properly.

>How-To-Repeat:

	Try to mount /cdrom shortly after inserting the disc.  May have
to repeat several times as timing is the issue here.  My system is
available for testing, if need be.  It is permanently on the internet.

>Fix:
	
	The only workaround that I can fine is to never be in a hurry.
There are obvious problems with this workaround, though. :)

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->suspended 
State-Changed-By: phk 
State-Changed-When: Thu Aug 13 23:16:48 PDT 1998 
State-Changed-Why:  
awaiting fix & committer 

From: Luoqi Chen <luoqi@watermarkgroup.com>
To: freebsd-gnats-submit@freebsd.org, dgilbert@velocet.ca
Cc:  Subject: Re: kern/7561: CDROM (wcd) is prone to lock up system/processes
Date: Fri, 14 Aug 1998 17:49:56 -0400

 The symptom sounds familiar. If you look at output from `ps -l', what is
 the WCHAN for the mount process? Is it atareq? Would you try the fix comes
 with PR i386/2108 and see if it helps?
 
 -lq
State-Changed-From-To: suspended->closed 
State-Changed-By: sos 
State-Changed-When: Tue May 29 12:03:03 PDT 2001 
State-Changed-Why:  
Obsoleted by time and the new ATA subsystem. 


http://www.FreeBSD.org/cgi/query-pr.cgi?pr=7561 
>Unformatted:
