From nobody@FreeBSD.org  Mon Nov  1 09:41:26 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 8C73C16A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  1 Nov 2004 09:41:26 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 8287C43D45
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  1 Nov 2004 09:41:26 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id iA19fQ1I017804
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 1 Nov 2004 09:41:26 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id iA19fQmi017803;
	Mon, 1 Nov 2004 09:41:26 GMT
	(envelope-from nobody)
Message-Id: <200411010941.iA19fQmi017803@www.freebsd.org>
Date: Mon, 1 Nov 2004 09:41:26 GMT
From: Claudio Destro <o1b6@tiscali.it>
To: freebsd-gnats-submit@FreeBSD.org
Subject: panic: vinvalbuf: dirty bufs
X-Send-Pr-Version: www-2.3

>Number:         73375
>Category:       kern
>Synopsis:       [panic] vinvalbuf: dirty bufs during umass detach
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 01 09:50:21 GMT 2004
>Closed-Date:    Sat Jun 30 08:45:07 GMT 2007
>Last-Modified:  Sat Jun 30 08:45:07 GMT 2007
>Originator:     Claudio Destro
>Release:        5.3-STABLE
>Organization:
>Environment:
FreeBSD vulcan 5.3-STABLE FreeBSD 5.3-STABLE #15: Wed Oct 27 17:31:14 CEST 2004     root@:/mnt/AC26400R/usr.obj/usr/src/sys/VULCAN  i386
>Description:
I get a panic detaching my USB mass storage during final sync,
without previously unmounting it.

I don't know if this is a real problem (since I did not unmount the
USB mass storage), but it leaves my root filesystem unclean.

That's my logs:

(umass detaching logs...)
(...) 1 1 0 0 0 done
No buffers busy after final sync
(da1:umass-sim0:0:0:0): Synchronize cache failed, status == 0x39, scsi status == 0x0
(da1:umass-sim0:0:0:0): removing device entry
panic: vinvalbuf: dirty bufs
Uptime: 1h23m45s
(...)

>How-To-Repeat:
Attach an USB mass storage, mount it, and then reboot or shutdown,
when final syncing detach umass.
>Fix:
      
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Sat Jun 30 08:43:37 UTC 2007 
State-Changed-Why:  
There is a very well-documented problem with removing devices before 
they are unmounted.  I'm going to go ahead and close this one because there 
are so many other PR about it. 

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