From phk@critter.freebsd.dk  Wed May 17 06:09:16 2006
Return-Path: <phk@critter.freebsd.dk>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id BF35D16A402
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 17 May 2006 06:09:16 +0000 (UTC)
	(envelope-from phk@critter.freebsd.dk)
Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 59BEF43D45
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 17 May 2006 06:09:16 +0000 (GMT)
	(envelope-from phk@critter.freebsd.dk)
Received: from critter.freebsd.dk (unknown [192.168.48.2])
	by phk.freebsd.dk (Postfix) with ESMTP id 500AE170DE;
	Wed, 17 May 2006 06:09:13 +0000 (UTC)
Received: from critter.freebsd.dk (localhost [127.0.0.1])
	by critter.freebsd.dk (8.13.6/8.13.6) with ESMTP id k4H69C6v028941;
	Wed, 17 May 2006 08:09:12 +0200 (CEST)
	(envelope-from phk@critter.freebsd.dk)
Message-Id: <28940.1147846152@critter.freebsd.dk>
Date: Wed, 17 May 2006 08:09:12 +0200
From: "Poul-Henning Kamp" <phk@phk.freebsd.dk>
Sender: phk@critter.freebsd.dk
To: john hood <jh@sandstorm.net>, cgull@glup.org, ni@sandstorm.net
Cc: FreeBSD-gnats-submit@freebsd.org
In-Reply-To: Your message of "Mon, 08 May 2006 19:29:24 EDT."
             <20060508232924.GA10461@sandstorm.net> 
Subject: Re: bogus "All threads purged from ugen0.1" message 

>Number:         97388
>Category:       kern
>Synopsis:       Re: kern/97000: bogus "All threads purged from ugen0.1" message
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 17 06:10:14 GMT 2006
>Closed-Date:    Wed May 24 21:14:39 GMT 2006
>Last-Modified:  Wed May 24 21:14:39 GMT 2006
>Originator:     
>Release:        
>Organization:
>Environment:
>Description:
 In message <20060508232924.GA10461@sandstorm.net>, john hood writes:
 
 >On some devices, when the device instance is torn down, the kernel
 >prints the message "All threads purged from <device>" message,
 >regardless of whether there were actually any threads to purge.  For
 >us, this happens with Keylok security dongles and their pesky binary
 >library to access the thing; I'm guessing their library causes the
 >device to reconfigure on the bus.
 
 Your patch is not correct, csw->d_purge() needs to be called in all
 cases, but I agree that the message has outlived its purpose in
 the zero threads case.
 
 Will fix.
 
 -- 
 Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
 phk@FreeBSD.ORG         | TCP/IP since RFC 956
 FreeBSD committer       | BSD since 4.3-tahoe    
 Never attribute to malice what can adequately be explained by incompetence.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Wed May 24 21:13:43 UTC 2006 
State-Changed-Why:  
Misfiled followup to kern/97000; content migrated. 


Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Wed May 24 21:13:43 UTC 2006 
Responsible-Changed-Why:  

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