From bkoenig@mail.alpha-tierchen.de  Wed Feb  9 02:32:10 2005
Return-Path: <bkoenig@mail.alpha-tierchen.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 4A5A316A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  9 Feb 2005 02:32:10 +0000 (GMT)
Received: from mail.efacilitas.de (efacilitas.de [213.133.110.227])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 6CDC343D46
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  9 Feb 2005 02:32:09 +0000 (GMT)
	(envelope-from bkoenig@mail.alpha-tierchen.de)
Received: from mail.alpha-tierchen.de (port-212-202-38-15.dynamic.qsc.de [212.202.38.15])
	by mail.efacilitas.de (Postfix) with ESMTP id 097F1123961
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  9 Feb 2005 03:31:33 +0100 (CET)
Received: from localhost (localhost.local [127.0.0.1])
	by mail.alpha-tierchen.de (Postfix) with ESMTP id C451FCCD818
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  9 Feb 2005 03:32:01 +0100 (CET)
Received: from mail.alpha-tierchen.de ([127.0.0.1])
 by localhost (mail.efacilitas.de [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 85718-09 for <FreeBSD-gnats-submit@freebsd.org>;
 Wed,  9 Feb 2005 03:31:59 +0100 (CET)
Received: by mail.alpha-tierchen.de (Postfix, from userid 2000)
	id DFEF6CCD816; Wed,  9 Feb 2005 03:31:59 +0100 (CET)
Message-Id: <20050209023159.DFEF6CCD816@mail.alpha-tierchen.de>
Date: Wed,  9 Feb 2005 03:31:59 +0100 (CET)
From: Bjrn Knig <bkoenig@cs.tu-berlin.de>
Reply-To: Bjrn Knig <bkoenig@cs.tu-berlin.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: system hangs while trying to unmount previously removed media
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         77289
>Category:       kern
>Synopsis:       system hangs while trying to unmount previously removed media
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 09 02:40:22 GMT 2005
>Closed-Date:    Mon Jun 25 19:23:44 GMT 2007
>Last-Modified:  Mon Jun 25 19:23:44 GMT 2007
>Originator:     Bjrn Knig
>Release:        FreeBSD 5.3-RELEASE-p4 i386
>Organization:
>Environment:
System: FreeBSD hoppel.local 5.3-RELEASE-p4 FreeBSD 5.3-RELEASE-p4 #0: Mon Jan 10 10:02:44 CET 2005 root@hoppel.local:/usr/obj/usr/branch/RELENG_5_3/src/sys/HOPPEL i386


	
>Description:
	The system hangs while trying to unmount a filesystem of a removable media
	which was already physically removed and also if it was inserted again before.
	This concerns floppy disks. I also noticed similar odd behaviour with usb
	pen drives, but the system reboots instead and there is lot of console output.

>How-To-Repeat:
	mount a floppy disk

		% mount /dev/fd0 /mnt

	remove media now and unmount the file system
		
		% umount /mnt
	
	the following message appears on console:
		
		fsync: giving up on dirty: 0xc1ec5420: tag devfs, type VCHR,
		usecount 4, writecount 0, refcount 4, flags (VV_OBJBUF),
		lock type devfs: EXCL (count 1) by thread 0xc19adaf0 (pid 590)
		dev fd0

	and mount shows that the filesystem is still mounted. trying to unmount
	it twice let the system stop working immediately.

	a similar case occurs if you mount a floppy disk, remove media, insert
	disk again and then unmount the file system:
	
		umount: unmount of /mnt failed: Device not configured

	try to unmount it twice - system hangs.
>Fix:

>Release-Note:
>Audit-Trail:

From: =?iso-8859-1?Q?Bj=F6rn_K=F6nig?= <bkoenig@alpha-tierchen.de>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: kern/77289: system hangs while trying to unmount previously 
     removed media
Date: Mon, 25 Jun 2007 20:53:42 +0200 (CEST)

 Please close this PR that I have originated. The problem is not solved,
 but excessively discussed on current@ several times.
 
 Bjrn
 
 
State-Changed-From-To: open->closed 
State-Changed-By: remko 
State-Changed-When: Mon Jun 25 19:23:43 UTC 2007 
State-Changed-Why:  
Bjorn requests this PR to be closed; it is not solved but discussed on 
-current a lot. 

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