From owner-cvs-all@FreeBSD.ORG Wed Sep 8 07:22:39 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0BB8E16A4CE; Wed, 8 Sep 2004 07:22:39 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id AABA943D41; Wed, 8 Sep 2004 07:22:38 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.13.1/8.13.1) with ESMTP id i887K2eJ043270; Wed, 8 Sep 2004 01:20:02 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Wed, 08 Sep 2004 01:20:31 -0600 (MDT) Message-Id: <20040908.012031.93204322.imp@bsdimp.com> To: src-committers@FreeBSD.ORG, cvs-src@FreeBSD.ORG, cvs-all@FreeBSD.ORG From: "M. Warner Losh" In-Reply-To: <200409080713.i887Dd54058789@repoman.freebsd.org> References: <200409080713.i887Dd54058789@repoman.freebsd.org> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: cvs commit: src/sys/dev/usb ugen.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Sep 2004 07:22:39 -0000 In message: <200409080713.i887Dd54058789@repoman.freebsd.org> Warner Losh writes: : imp 2004-09-08 07:13:39 UTC : : FreeBSD src repository : : Modified files: : sys/dev/usb ugen.c : Log: : Back out 1.88. 1.87 I mean. : 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. Warner