From owner-freebsd-scsi@FreeBSD.ORG Sun Feb 26 21:17:56 2012 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 59543106566C for ; Sun, 26 Feb 2012 21:17:56 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe05.c2i.net [212.247.154.130]) by mx1.freebsd.org (Postfix) with ESMTP id DB4268FC14 for ; Sun, 26 Feb 2012 21:17:55 +0000 (UTC) X-T2-Spam-Status: No, hits=-1.0 required=5.0 tests=ALL_TRUSTED Received: from [176.74.212.201] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe05.swip.net (CommuniGate Pro SMTP 5.4.2) with ESMTPA id 241858659 for freebsd-scsi@freebsd.org; Sun, 26 Feb 2012 22:07:52 +0100 From: Hans Petter Selasky To: freebsd-scsi@freebsd.org Date: Sun, 26 Feb 2012 22:06:08 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.3-PRERELEASE; KDE/4.4.5; amd64; ; ) X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201202262206.08378.hselasky@c2i.net> Subject: CAM layer gets stuck when sim->refcount > 0 at UMASS detach (10-current) X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Feb 2012 21:17:56 -0000 Hi, When running a stress test on a USB mass storage device, the CAM layer will eventually block at detach, because the refcount is not going towards zero on the SIM structure. Test script: ugenX.Y is a mass storage device #!/bin/sh while true do usbconfig -d ugenX.Y reset echo "." done After a minute or two the printouts above stops because the CAM layer is not releasing the reference count, indicating a bug somewhere during probe of the newly attached device. Any patches, ideas or things you want me to test? Please CC me hence I'm not subscribed to this list. --HPS