Subject: umount deadlock
To: NetBSD/users <netbsd-users@netbsd.org>
From: Alexander Bubnov <alexander.bubnov@gmail.com>
List: netbsd-users
Date: 02/26/2007 12:17:35
Hello, NetBSD community!

When I try to unmount some USB storage devices umount command is deadlocked!
dmesg errors:

umass0 at uhub1 port 1 configuration 1 interface 0
umass0: Motorola Inc. Motorola Phone (E398), rev 1.10/0.01, addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 1 lun per target
sd0 at scsibus0 target 0 lun 0: <Motorola, Motorola Phone, 2.31> disk
removable
sd0: fabricating a geometry
sd0: 60928 KB, 59 cyl, 64 head, 32 sec, 512 bytes/sect x 121857 sectors
sd0: fabricating a geometry
sd0: fabricating a geometry
sd0: fabricating a geometry
sd0: fabricating a geometry
sd0: fabricating a geometry
sd0: fabricating a geometry
sd0: fabricating a geometry
sd0: fabricating a geometry
sd0: fabricating a geometry
sd0: fabricating a geometry
umass0: Invalid CSW: tag 232 should be 233
umass0: Invalid CSW: tag 233 should be 234


Sometime, It works ok.
Note here is an example of errors for a mobile, but there are the same ones
for other USB storage devices. These devices have FAT.

If someone knows the reason of below errors than can you please let me know?

NetBSD xxxx.xx.xxxx.xx 3.1 NetBSD 3.1 (GENERIC) #0: Tue Oct 31 04:27:07 UTC
2006  builds@b0.netbsd.org:/home/builds/ab/netbsd-3-1-RELEASE/i386/200610302053Z-obj/home/builds/ab/netbsd-3-1-RELEASE/src/sys/arch/i386/compile/GENERIC
i386

I have the same errors on my laptop where I use GENERIC_LAPTOP kernel.