Date: Wed, 8 Sep 2004 07:13:39 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/usb ugen.c Message-ID: <200409080713.i887Dd54058789@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
imp 2004-09-08 07:13:39 UTC
FreeBSD src repository
Modified files:
sys/dev/usb ugen.c
Log:
Back out 1.88.
The reference counts are there to block detach until the sleepers in
read/write/ioctl have gotten out, not to prevent the open device from
going away. Restore the old behavior so that we have a chance to wake
up sleepers when the usb device goes away, so they can properly return
EIO back to the caller when this happens.
Otherwise, we have a guarnateed panic waiting to happen when a device
detaches with an active read channel.
This should be merged to 5 asap.
Revision Changes Path
1.89 +11 -9 src/sys/dev/usb/ugen.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200409080713.i887Dd54058789>
