From owner-cvs-src Mon Mar 17 9:26:43 2003 Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D0FCF37B401; Mon, 17 Mar 2003 09:26:40 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8423243F93; Mon, 17 Mar 2003 09:26:40 -0800 (PST) (envelope-from mux@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 h2HHQe0U079122; Mon, 17 Mar 2003 09:26:40 -0800 (PST) (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h2HHQeLW079121; Mon, 17 Mar 2003 09:26:40 -0800 (PST) Message-Id: <200303171726.h2HHQeLW079121@repoman.freebsd.org> From: Maxime Henrion Date: Mon, 17 Mar 2003 09:26:40 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/alpha/alpha busdma_machdep.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-src@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG mux 2003/03/17 09:26:40 PST FreeBSD src repository Modified files: sys/alpha/alpha busdma_machdep.c Log: Tidy up the locking of the bounce pages structures. - Use SYSINIT to initialize the structures instead of checking total_bpages against 0 in alloc_bounce_pages(), which could lead to several initializations being done at the same time. - Add missing locking in bus_dmamap_load(), the bounce pages mutex must be held when calling reserve_bounce_pages() and when touching the bounce_map_waitinglist list. - Remove the useless splhigh() and splx() calls. - Assert that the bounce pages mutex is held in reserve_bounce_pages() to catch regressions. Revision Changes Path 1.32 +21 -13 src/sys/alpha/alpha/busdma_machdep.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-src" in the body of the message