Date: Tue, 6 Jun 2006 09:20:55 GMT From: Hans Petter Selasky <hselasky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 98642 for review Message-ID: <200606060920.k569KtcP040637@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=98642 Change 98642 by hselasky@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));
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200606060920.k569KtcP040637>