Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Aug 2013 19:41:39 +0300
From:      Alexander Motin <mav@FreeBSD.org>
To:        Hans Petter Selasky <hps@bitfrost.no>
Cc:        Alexander Panyushkin <vsityz@gmail.com>, FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: USB no proper work
Message-ID:  <520FA7C3.2060708@FreeBSD.org>
In-Reply-To: <520F16B6.1070106@bitfrost.no>
References:  <520E8602.5050408@gmail.com> <520E8842.4020609@bitfrost.no> <520E8DE1.1090609@gmail.com> <520F16B6.1070106@bitfrost.no>

next in thread | previous in thread | raw e-mail | index | archive | help
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: <Generic> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?520FA7C3.2060708>