From pi@complx.lf.net  Mon Jul 14 08:50:12 1997
Received: from complx.lf.net (complx.LF.net [194.64.4.57])
          by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id IAA27993
          for <FreeBSD-gnats-submit@freebsd.org>; Mon, 14 Jul 1997 08:50:11 -0700 (PDT)
Received: by complx.lf.net (Smail3.2.0.95/complx.lf.net)
	via LF.net GmbH Internet Services
	for hub.freebsd.org
	id m0wnnNu-00050KC; Mon, 14 Jul 1997 17:49:58 +0200 (MET DST)
Message-Id: <m0wnnNu-00050KC@complx.lf.net>
Date: Mon, 14 Jul 1997 17:49:58 +0200 (MET DST)
From: pi@complx.lf.net
Reply-To: pi
To: FreeBSD-gnats-submit@freebsd.org
Subject: ccd0 hangs in newfs?
X-Send-Pr-Version: 3.2

>Number:         4089
>Category:       kern
>Synopsis:       if doing a newfs on a ccd device, system hangs
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 14 09:00:01 PDT 1997
>Closed-Date:    Wed Jul 16 04:37:12 PDT 1997
>Last-Modified:  Wed Jul 16 04:38:04 PDT 1997
>Originator:     Kurt Jaeger
>Release:        FreeBSD 2.2.2-RELEASE i386
>Organization:
MfG/Best regards, Kurt Jaeger                                  23 years to go !
LF.net GmbH        pi@LF.net
Vor dem Lauch 23   fon +49 711 90074-23
D-70567 Stuttgart  fax +49 711 7289041
>Environment:

	586 Intel system, ccd configured into kernel
	Adaptec 2940U or 2940 controller,
	IBM DCAS-34330 S60B
	QUANTUM FIREBALL_TM3200S 300X
	3COM 3C905 Fast Etherlink XL PCI
	2.2.2 RELEASE

>Description:

	if a ccd device is configured (ccdconfig -C -v)
	and newfs runs on that ccd0c, the systems hungs
	at different locations into the newfs.
	Sometimes it can work its way through it, sometimes
	it failes.
	Seems to happen more reliable if the two disks used
	for this have different speeds.
	Happens even if disk IO is down to 5 MB/sec and
	newfs is niced to -20.

>How-To-Repeat:

	clean install
	made ccd kernel
	configured ccd device
	newfs -> hungs

>Fix:
	
	do not use newfs on ccd devices 8-}

>Release-Note:
>Audit-Trail:

From: "Justin T. Gibbs" <gibbs@plutotech.com>
To: pi@FreeBSD.ORG
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: kern/4089: ccd0 hangs in newfs? 
Date: Mon, 14 Jul 1997 13:43:59 -0600

 >	if a ccd device is configured (ccdconfig -C -v)
 >	and newfs runs on that ccd0c,
 
 	and you happen to newfs the block device instead of
 	the raw device...
 
 >	the systems hungs
 
 This bug was already fixed fairly recently in current.  There
 was a deadlock problem with buffer reuse that could be triggered
 easily by newfsing a block device.  If you newfs the raw device,
 you shouldn't have any problems (i.e. use /dev/rccd0c instead of
 /dev/ccd0c).
 
 --
 Justin T. Gibbs
 ===========================================
   FreeBSD: Turning PCs into workstations
 ===========================================
 
 
State-Changed-From-To: open->closed 
State-Changed-By: phk 
State-Changed-When: Wed Jul 16 04:37:12 PDT 1997 
State-Changed-Why:  
I pressume Justin answered this one well enough. 
>Unformatted:
