PERFORCE change 98642 for review
Hans Petter Selasky
hselasky at FreeBSD.org
Tue Jun 6 09:26:34 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=98642
Change 98642 by hselasky at hselasky_mini_itx on 2006/06/06 09:20:08
Bugfix: Make sure that "USB cdev" waits for data to get flushed.
Affected files ...
.. //depot/projects/usb/src/sys/dev/usb/usb_cdev.c#3 edit
Differences ...
==== //depot/projects/usb/src/sys/dev/usb/usb_cdev.c#3 (text+ko) ====
@@ -1294,6 +1294,12 @@
USBD_IF_PREPEND(&(sc->sc_wrq_used), m);
}
} else {
+
+ if (tr_data) {
+ /* wait for data to be written out */
+ break;
+ }
+
if (sc->sc_flags & USB_CDEV_FLAG_FLUSHING_WRITE) {
sc->sc_flags &= ~USB_CDEV_FLAG_FLUSHING_WRITE;
wakeup(&(sc->sc_wakeup_flush));
More information about the p4-projects
mailing list