From owner-cvs-all Tue Mar 6 15:13:20 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id D5BE037B718; Tue, 6 Mar 2001 15:13:15 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: (from jhb@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f26NDFd42153; Tue, 6 Mar 2001 15:13:15 -0800 (PST) (envelope-from jhb) Message-Id: <200103062313.f26NDFd42153@freefall.freebsd.org> From: John Baldwin Date: Tue, 6 Mar 2001 15:13:15 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_sx.c src/sys/sys sx.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG jhb 2001/03/06 15:13:15 PST Modified files: sys/kern kern_sx.c sys/sys sx.h Log: In order to avoid recursing on the backing mutex for sx locks in the INVARIANTS case, define the actual KASSERT() in _SX_ASSERT_[SX]LOCKED macros that are used in the sx code itself and convert the SX_ASSERT_[SX]LOCKED macros to simple wrappers that grab the mutex for the duration of the check. Revision Changes Path 1.3 +3 -3 src/sys/kern/kern_sx.c 1.5 +11 -3 src/sys/sys/sx.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message