From owner-freebsd-usb@FreeBSD.ORG Mon Jun 29 11:49:47 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 594EC106566C for ; Mon, 29 Jun 2009 11:49:47 +0000 (UTC) (envelope-from sebastian.huber@embedded-brains.de) Received: from mail.embedded-brains.de (host-82-135-62-35.customer.m-online.net [82.135.62.35]) by mx1.freebsd.org (Postfix) with ESMTP id 097E18FC0A for ; Mon, 29 Jun 2009 11:49:47 +0000 (UTC) (envelope-from sebastian.huber@embedded-brains.de) Received: by mail.embedded-brains.de (Postfix, from userid 65534) id 2F8BA6F8241; Mon, 29 Jun 2009 13:29:52 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on fidibus.eb.z X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.3 Received: from [192.168.96.31] (eb0011.eb.z [192.168.96.31]) by mail.embedded-brains.de (Postfix) with ESMTP id 7B0E16F823F for ; Mon, 29 Jun 2009 13:29:49 +0200 (CEST) Message-ID: <4A48A5AD.9040508@embedded-brains.de> Date: Mon, 29 Jun 2009 13:29:49 +0200 From: Sebastian Huber User-Agent: Thunderbird 2.0.0.19 (X11/20081227) MIME-Version: 1.0 To: freebsd-usb@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Cc: Subject: Potential problem with USB_THREAD_SUSPEND()? 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: Mon, 29 Jun 2009 11:49:47 -0000 Hi, USB_THREAD_SUSPEND(p) is defined as {kproc|kthread}_suspend(p, 0). This means that it will wait until the corresponding thread recognizes its suspend request and suspends itself. It seems that {kproc|kthread}_suspend_check() will be used nowhere in the USB system. Thus the USB_THREAD_SUSPEND() will block forever in most cases? It is only used in usb_proc_drain() during cold boot. Have a nice day! -- Sebastian Huber, Embedded Brains GmbH Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany Phone : +49 89 18 90 80 79-6 Fax : +49 89 18 90 80 79-9 E-Mail : sebastian.huber@embedded-brains.de PGP : Public key available on request Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.