From owner-freebsd-usb@FreeBSD.ORG Fri Mar 27 07:34:26 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8B02D106566B; Fri, 27 Mar 2009 07:34:26 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe11.tele2.se [212.247.155.65]) by mx1.freebsd.org (Postfix) with ESMTP id E798E8FC17; Fri, 27 Mar 2009 07:34:25 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=n5aOCZHmuQwA:10 a=A9ufto_D_ZIA:10 a=j+k/Ze5hWUCaCztCgEjzDQ==:17 a=GcxpzOPHOozJcu6cbz4A:9 a=7nj3L2tNJo44QL4YC6kvW-f7D7kA:4 a=LY0hPdMaydYA:10 Received: from [81.191.55.181] (account mc467741@c2i.net HELO laptop) by mailfe11.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1044030929; Fri, 27 Mar 2009 08:34:23 +0100 From: Hans Petter Selasky To: Weongyo Jeong Date: Fri, 27 Mar 2009 08:36:54 +0100 User-Agent: KMail/1.9.7 References: <20090327022902.GC19512@weongyo.cdnetworks.kr> In-Reply-To: <20090327022902.GC19512@weongyo.cdnetworks.kr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200903270836.55005.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: q: a trivial question of usb2_transfer_unsetup() X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Mar 2009 07:34:26 -0000 On Friday 27 March 2009, Weongyo Jeong wrote: > Hello Hans, > > I have a simple question that is there a possibility for .mh.callback of > usb2_config to be called after usb2_transfer_unsetup()? Hi, usb2_transfer_unsetup() calls usb2_transfer_drain() which ensures that the callback has exited before returning. Even if you drop the private transfer lock in the callback and pick it up before returning. --HPS