From owner-cvs-all Tue Jul 30 16:26:27 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3CD7337B400; Tue, 30 Jul 2002 16:26:23 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E44FE43E5E; Tue, 30 Jul 2002 16:26:22 -0700 (PDT) (envelope-from iedowse@FreeBSD.org) Received: from freefall.freebsd.org (iedowse@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g6UNQMJU096918; Tue, 30 Jul 2002 16:26:22 -0700 (PDT) (envelope-from iedowse@freefall.freebsd.org) Received: (from iedowse@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g6UNQM1W096917; Tue, 30 Jul 2002 16:26:22 -0700 (PDT) Message-Id: <200207302326.g6UNQM1W096917@freefall.freebsd.org> From: Ian Dowse Date: Tue, 30 Jul 2002 16:26:22 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/usb uhci.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG iedowse 2002/07/30 16:26:22 PDT Modified files: sys/dev/usb uhci.c Log: Remove some strange code that allocates memory and then immediately frees it again. The idea was to perform M_WAITOK allocations in a process context to reduce the risk of later interrupt-context M_NOWAIT allocations failing, but in fact this code can be called from contexts where it is not desirable to sleep (e.g. if_start routines), so it causes lots of witness "could sleep" warnings. Revision Changes Path 1.123 +2 -26 src/sys/dev/usb/uhci.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message