From owner-cvs-all@FreeBSD.ORG Sun Jul 20 19:41:02 2003 Return-Path: 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 8DD2137B401; Sun, 20 Jul 2003 19:41:02 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2868B43F85; Sun, 20 Jul 2003 19:41:02 -0700 (PDT) (envelope-from jmg@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h6L2f10U080801; Sun, 20 Jul 2003 19:41:01 -0700 (PDT) (envelope-from jmg@repoman.freebsd.org) Received: (from jmg@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h6L2f1rW080800; Sun, 20 Jul 2003 19:41:01 -0700 (PDT) Message-Id: <200307210241.h6L2f1rW080800@repoman.freebsd.org> From: John-Mark Gurney Date: Sun, 20 Jul 2003 19:41:01 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/usb usb_mem.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jul 2003 02:41:02 -0000 jmg 2003/07/20 19:41:01 PDT FreeBSD src repository Modified files: sys/dev/usb usb_mem.c Log: override the tag. usb_block_allocmem allocates a new tag, which when we go looking for free fragments won't match. Since we never free this, we can "throw away" the tag. This is very dirty, and needs to be reimplemented properly, but fixes performance problems with uhci. Also assert that when we overlay a structure on some space, that the space is large enough for the structure. Revision Changes Path 1.2 +5 -1 src/sys/dev/usb/usb_mem.c