Date: Mon, 6 May 2002 15:04:32 -0700 (PDT) From: "Andrew R. Reiter" <arr@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 10907 for review Message-ID: <200205062204.g46M4WH28726@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205062204.g46M4WH28726>