From owner-freebsd-current@FreeBSD.ORG Sat Aug 17 16:41:45 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 936813C3 for ; Sat, 17 Aug 2013 16:41:45 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-la0-x236.google.com (mail-la0-x236.google.com [IPv6:2a00:1450:4010:c03::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 183B12039 for ; Sat, 17 Aug 2013 16:41:44 +0000 (UTC) Received: by mail-la0-f54.google.com with SMTP id ea20so2351565lab.13 for ; Sat, 17 Aug 2013 09:41:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=cOQxz2OX0pyzvzBqlH42kLmWFn+Bjjsxe3JVeXr0LkI=; b=wqPaPTKpks2Ew+Gt9jV4yHrR3tEm5DAZMdKS6y95x4VbiVvh7DU80iaWiDxJGt0XT+ qWHz6Wto1G1JpDLDc6Ui59Ayc9zRBupKgPwG8Gz/Y8mhbliJ8L4EZ7yAJTGeHeZQyVuq +noXcsj6tWSiWAhRtRPA+H2E3b0dBuDZ56z7QDAP8cPH14byx6esch+xxhtmxer9ZVuf h3/1eK3ratz+idhco3Ndi5CQLAFBvy3gVPeM+mKpo5id1dD3bWL3WjioQz7dFQ2R1XFe SN86mWexxfOZ7LlgaRoqlPIVkYn2o7/mk7cS6Av3f6VNCxd7ofDOWucVpOi4dEEhMMw2 kHhQ== X-Received: by 10.152.2.4 with SMTP id 4mr3497321laq.0.1376757702838; Sat, 17 Aug 2013 09:41:42 -0700 (PDT) Received: from mavbook.mavhome.dp.ua ([91.198.175.1]) by mx.google.com with ESMTPSA id q5sm1181824lbe.10.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 17 Aug 2013 09:41:41 -0700 (PDT) Sender: Alexander Motin Message-ID: <520FA7C3.2060708@FreeBSD.org> Date: Sat, 17 Aug 2013 19:41:39 +0300 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130616 Thunderbird/17.0.6 MIME-Version: 1.0 To: Hans Petter Selasky Subject: Re: USB no proper work References: <520E8602.5050408@gmail.com> <520E8842.4020609@bitfrost.no> <520E8DE1.1090609@gmail.com> <520F16B6.1070106@bitfrost.no> In-Reply-To: <520F16B6.1070106@bitfrost.no> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Alexander Panyushkin , FreeBSD Current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Aug 2013 16:41:45 -0000 On 17.08.2013 09:22, Hans Petter Selasky wrote: > On 08/16/13 22:38, Alexander Panyushkin wrote: >> ========This deatach========== >> Aug 16 23:24:05 scorpion kernel: ugen1.2: at usbus1 >> (disconnected) >> Aug 16 23:24:05 scorpion kernel: umass0: at uhub0, port 4, addr 2 >> (disconnected) >> Aug 16 23:24:05 scorpion kernel: (da0:umass-sim0:0:0:0): lost device - 0 >> outstanding, 2 refs > > Hi, > > The 2 refs is a problem that someone is keeping the device opened. > That's the problem and that's what is stopping the enumeration thread. 2 refs may be not a CAM bug. One of them can be GEOM reference and another is open device reference. What were the file systems on the device and were they active/mounted during detach? Just recently I tested hot-plug device with ZFS on 10-CURRENT using USB sticks and found no problems in either CAM or USB stack around device disconnect. -- Alexander Motin