From owner-freebsd-current@FreeBSD.ORG Sat Aug 17 21:55:11 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id C445AFBA; Sat, 17 Aug 2013 21:55:11 +0000 (UTC) (envelope-from vsityz@gmail.com) Received: from mail-la0-x232.google.com (mail-la0-x232.google.com [IPv6:2a00:1450:4010:c03::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1A52D2DC2; Sat, 17 Aug 2013 21:55:10 +0000 (UTC) Received: by mail-la0-f50.google.com with SMTP id ek20so2437640lab.37 for ; Sat, 17 Aug 2013 14:55:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=VGAMx+rV13Sb0qO2qSI5OY4J7YX3o/IuSlzydWD9oJw=; b=st58e4BAw3/nVnlvzORGLdo9CuT0LtFVxsMQLLYgaNnlq2nYPlQG3JSbeC026cnzlY qJy0mzbY4fw4Oq59PxGIf6VjR5J3AsarejNEctBrmvqYhusC/1CPgNHt8u2p6h0jeOhL uqGjqrWstHUTMIzZ3JR3RwTvjcibUaj8RD38uuURYThay0cYZRDSHXoD9Capv7sSZdpY dD4D9u+zpJnJ4DaNPTqHPR5t4F46dJMQwBX1NTcOkLkYTi6mD62ep1/8Jy3ugVGd5sxk 3qf7nEgqRyjQp3v85xuVtg+AH4ulKuRQLfeQmxBmhKyXh9j1VPKDxY1LIHsbSwbLkY3P JhVg== X-Received: by 10.152.87.143 with SMTP id ay15mr4537698lab.2.1376776508914; Sat, 17 Aug 2013 14:55:08 -0700 (PDT) Received: from scorpion.kiev.ua ([46.247.161.100]) by mx.google.com with ESMTPSA id pw4sm1892196lbb.9.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 17 Aug 2013 14:55:07 -0700 (PDT) Message-ID: <520FF137.1020709@gmail.com> Date: Sun, 18 Aug 2013 00:55:03 +0300 From: Alexander Panyushkin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130811 Thunderbird/17.0.8 MIME-Version: 1.0 To: Alexander Motin Subject: Re: USB no proper work References: <520E8602.5050408@gmail.com> <520E8842.4020609@bitfrost.no> <520E8DE1.1090609@gmail.com> <520F16B6.1070106@bitfrost.no> <520FA7C3.2060708@FreeBSD.org> In-Reply-To: <520FA7C3.2060708@FreeBSD.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: Hans Petter Selasky , 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 21:55:11 -0000 17.08.2013 19:41, Alexander Motin пишет: > 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. > On USB device FAT-32 file system. When I removed flash drive, the file system has been unmounted.