cvs commit: src/sys/dev/usbmisc/umass
Matthew Dillon
dillon at crater.dragonflybsd.org
Tue Sep 14 18:39:10 PDT 2004
dillon 2004/09/14 18:38:13 PDT
DragonFly src repository
Modified files:
sys/dev/usbmisc/umass umass.c
Log:
When a umass storage device is unplugged there might be pending requests
which either fail or wind up in limbo. The state machine will attempt to
issue a BBB RESET, but since this does not occur on our bulk or interrupt
pipes simply aborting the pipes is not sufficient to ensure that all of our
xfer requests have been idled.
We must also wait for any in-progress RESET's to complete, which is
accomplished by testing sc->transfer_state. Otherwise we may wind up
freeing an active xfer request and blow up.
Revision Changes Path
1.13 +19 -0 src/sys/dev/usbmisc/umass/umass.c
http://www.dragonflybsd.org/cvsweb/src/sys/dev/usbmisc/umass/umass.c.diff?r1=1.12&r2=1.13&f=u
More information about the Commits
mailing list