From owner-p4-projects Mon May 6 15: 4:43 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id F3A9A37B40B; Mon, 6 May 2002 15:04:32 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 3D38537B406 for ; Mon, 6 May 2002 15:04:32 -0700 (PDT) Received: (from perforce@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g46M4WH28726 for perforce@freebsd.org; Mon, 6 May 2002 15:04:32 -0700 (PDT) (envelope-from arr@freebsd.org) Date: Mon, 6 May 2002 15:04:32 -0700 (PDT) Message-Id: <200205062204.g46M4WH28726@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to arr@freebsd.org using -f From: "Andrew R. Reiter" Subject: PERFORCE change 10907 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG http://people.freebsd.org/~peter/p4db/chv.cgi?CH=10907 Change 10907 by arr@arr_shibby on 2002/05/06 15:04:13 - Remove audit_z_mtx -- need to still rename audit_q_mtx. Affected files ... ... //depot/projects/trustedbsd/audit/sys/kern/kern_audit.c#33 edit Differences ... ==== //depot/projects/trustedbsd/audit/sys/kern/kern_audit.c#33 (text+ko) ==== @@ -53,7 +53,6 @@ * */ struct mtx audit_q_mtx; -struct mtx audit_z_mtx; struct audit_record_list record_queue; static uma_zone_t record_zone; @@ -81,10 +80,7 @@ * evsz = ev_size_tab[type]; */ - mtx_lock(&audit_z_mtx); rec = uma_zalloc(record_zone, M_NOWAIT|M_ZERO); - mtx_unlock(&audit_z_mtx); - h = &rec->ar_hdr; h->ah_v = AUDIT_VERSION; h->ah_id = audit_id++; @@ -101,7 +97,6 @@ { mtx_init(&audit_q_mtx, "audit q lock", NULL, MTX_DEF); - mtx_init(&audit_z_mtx, "audit z lock", NULL, MTX_DEF); record_zone = uma_zcreate("AUDIT", sizeof(audit_record_t), NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, 0); if (record_zone == NULL) @@ -127,7 +122,6 @@ audit_shutdown_flag = 1; uma_zdestroy(record_zone); mtx_destroy(&audit_q_mtx); - mtx_destroy(&audit_z_mtx); }; SYSUNINIT(tbsd_audit, SI_SUB_MAC, SI_ORDER_ANY, &audit_shutdown, NULL); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message