From owner-svn-src-head@FreeBSD.ORG Sat Jul 13 13:48:28 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 375A9F9A; Sat, 13 Jul 2013 13:48:28 +0000 (UTC) (envelope-from to.my.trociny@gmail.com) Received: from mail-lb0-x229.google.com (mail-lb0-x229.google.com [IPv6:2a00:1450:4010:c04::229]) by mx1.freebsd.org (Postfix) with ESMTP id EAC271102; Sat, 13 Jul 2013 13:48:26 +0000 (UTC) Received: by mail-lb0-f169.google.com with SMTP id d10so8393423lbj.0 for ; Sat, 13 Jul 2013 06:48:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=NVaEAak1XwOw04ZRDQHqXXZL7tV1BRnNDT2TbdYEPt8=; b=kNYXCoMqobhQ+nwxP88jBeH5qaHsg/DEHouJ/BzagZcY8946/jJT4qm9zf5+jQ2Ckq zIzEtK9k28sxtCbz64FyxV7NJs5og/kZaV8A+wMLEyOz7gKKyfI60YieOpv6hJfa/B+O RJO8jU9lMN6Bjw+VPVeDTuwGkpe6sjrZItYsr+1voqVrtwcQHGkC3r75MiqLDUnG5BHZ WawT/+jNwvRcTLZ5SWsfLUATwl3phEtW/l87KUnMOHpypilW/ZGfivXRy1Abk4aLU1CO SRZhDB7b4woItmxdFI3vMWK/ZBA5ZVAehGsBD8KthUgw37IKaA0hPbOhmYAxRX70JguP rfpQ== X-Received: by 10.152.5.227 with SMTP id v3mr21587060lav.31.1373723305738; Sat, 13 Jul 2013 06:48:25 -0700 (PDT) Received: from localhost ([178.150.115.244]) by mx.google.com with ESMTPSA id m1sm16030446lag.3.2013.07.13.06.48.23 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sat, 13 Jul 2013 06:48:24 -0700 (PDT) Sender: Mikolaj Golub Date: Sat, 13 Jul 2013 16:48:20 +0300 From: Mikolaj Golub To: Marko Zec Subject: Re: svn commit: r253255 - head/sys/netgraph/bluetooth/drivers/ubt Message-ID: <20130713134819.GF2757@gmail.com> References: <201307120803.r6C83ACp016523@svn.freebsd.org> <20130713073118.GC2757@gmail.com> <201307131339.52599.zec@fer.hr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201307131339.52599.zec@fer.hr> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Craig Rodrigues , svn-src-head@freebsd.org, Adrian Chadd , src-committers@freebsd.org, svn-src-all@freebsd.org X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Jul 2013 13:48:28 -0000 On Sat, Jul 13, 2013 at 01:39:52PM +0200, Marko Zec wrote: > I fear both Adrian's and my patch fall short of addressing the issue of > generic USB device attach handling in VIMAGE kernels, i.e. the patches > discussed in this thread might be OK for preventing panics with ng_ubt, but > what about USB ethernet or wifi devices? If I recall correctly the USB > stack has a separate thread which handles device attach events, and IMO the > curvnet context should be set there to cover a broader set of different > devices. You mean usb_process thread? But as I see it calls device_probe_and_attach() in usb_probe_and_attach(), which has vnet context properly set to the default vnet after your patch. So I beleive paths like these are fixed: http://lists.freebsd.org/pipermail/freebsd-virtualization/2009-May/000325.html http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/169991 Or do you mean something else? -- Mikolaj Golub