Skip site navigation (1)Skip section navigation (2)
Date:      Wed,  9 Feb 2005 03:31:59 +0100 (CET)
From:      Björn König <bkoenig@cs.tu-berlin.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   kern/77289: system hangs while trying to unmount previously removed media
Message-ID:  <20050209023159.DFEF6CCD816@mail.alpha-tierchen.de>
Resent-Message-ID: <200502090240.j192eM6K075477@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         77289
>Category:       kern
>Synopsis:       system hangs while trying to unmount previously removed media
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 09 02:40:22 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Björn König
>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:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050209023159.DFEF6CCD816>