Subject: Re: misc/37369: Unmounting mass-storage causes umount to freeze
To: None <misc-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: bennybyko@gmx.de <bennybyko@gmx.de>
List: netbsd-bugs
Date: 11/12/2007 20:55:12
The following reply was made to PR misc/37369; it has been noted by GNATS.

From: "bennybyko@gmx.de" <bennybyko@gmx.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: misc/37369: Unmounting mass-storage causes umount to freeze
Date: Mon, 12 Nov 2007 20:50:47 +0000

 Allen Briggs wrote:
 > The following reply was made to PR misc/37369; it has been noted by GNATS.
 >
 > From: Allen Briggs <briggs@netbsd.org>
 > To: gnats-bugs@NetBSD.org
 > Cc: misc-bug-people@netbsd.org, gnats-admin@netbsd.org,
 > 	netbsd-bugs@netbsd.org
 > Subject: Re: misc/37369: Unmounting mass-storage causes umount to freeze
 > Date: Mon, 12 Nov 2007 12:43:04 -0500
 >
 >  On Mon, Nov 12, 2007 at 05:35:00PM +0000, bennybyko@gmx.de wrote:
 >  > Unmounting an usb-stick from "umass0: MEDION Medion Flash XL V2.7D, rev 1.10/2.7d" (an usb-hub and card-reader) causes umount to freeze and error messages to appear in "dmesg". If the usb-stick is simply removed from the device, NetBSD freezes.
 >  
 >  Can you copy the messages from "dmesg"?  It would be useful to know what
 >  it's complaining about.  This has generally worked for me in the past
 >  with different usb sticks and drives.
 >  
 >  Thanks,
 >  -allen
 >  
 >  -- 
 >  Allen Briggs  |  http://www.ninthwonder.com/~briggs/  |  briggs@ninthwonder.com
 >  
 >
 >   
 Hello again ,
 
 It just worked without copying files. 2 times.
 It seems as if the error only appears if I copy files.
 Thanks for your support so far.
 
 What I did exactly when my usb-stick was plugged in:
 
 *plugging in the stick*
 $ dmesg | tail
 umass1 at uhub0 port 1 configuration 1 interface 0
 umass1: AccFast AFMP3 Player, rev 1.10/2.05, addr 2
 umass1: using SCSI over Bulk-Only
 scsibus1 at umass1: 2 targets, 1 lun per target
 sd4 at scsibus1 target 0 lun 0: <AccFast, USB-MSC Disk IN, T> disk removable
 sd4: fabricating a geometry
 sd4: 239 MB, 239 cyl, 64 head, 32 sec, 512 bytes/sect x 490496 sectors
 
 
 $ disklabel /dev/sd4
 # /dev/rsd4d:
 type: SCSI
 disk:  USB-MSC Disk IN
 label: fictitious
 flags: removable
 bytes/sector: 512
 sectors/track: 32
 tracks/cylinder: 64
 sectors/cylinder: 2048
 cylinders: 239
 total sectors: 490496
 rpm: 3600
 interleave: 1
 trackskew: 0
 cylinderskew: 0
 headswitch: 0           # microseconds
 track-to-track seek: 0  # microseconds
 drivedata: 0
 
 4 partitions:
 #        size    offset     fstype [fsize bsize cpg/sgs]
  a:    490496         0     4.2BSD      0     0     0  # (Cyl.      0 
 -    239*)
  d:    490496         0     unused      0     0        # (Cyl.      0 
 -    239*)
 disklabel: boot block size 0
 disklabel: super block size 0
 
 $ mount_msdos /dev/sd4a /mnt/usb
 *copying files to /mnt/usb*
 $ cp /home/babenny/netbsd.png /mnt/usb
 *yep*
 $ umount /mnt/usb
 *FREEZES!*
 $ dmesg | tail  --->
 umass1: BBB bulk-out stall clear failed, IOERROR
 umass1: BBB reset failed, IOERROR
 umass1: BBB bulk-in clear stall failed, IOERROR
 umass1: BBB bulk-out clear stall failed, TIMEOUT
 *I unplug my usb-stick --> complete FREEZE*