From owner-cvs-all Mon Mar 5 22:49:10 2001 Delivered-To: cvs-all@freebsd.org Received: from magnesium.net (toxic.magnesium.net [207.154.84.15]) by hub.freebsd.org (Postfix) with SMTP id 35F5937B71D for ; Mon, 5 Mar 2001 22:49:03 -0800 (PST) (envelope-from jasone@magnesium.net) Received: (qmail 36379 invoked by uid 1142); 6 Mar 2001 06:52:01 -0000 Date: 5 Mar 2001 22:52:01 -0800 Date: Mon, 5 Mar 2001 22:48:51 -0800 From: Jason Evans To: Bosko Milekic Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern kern_sx.c src/sys/sys sx.h Message-ID: <20010305224851.L45981@canonware.com> References: <200103060617.f266H7u69208@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200103060617.f266H7u69208@freefall.freebsd.org>; from bmilekic@FreeBSD.org on Mon, Mar 05, 2001 at 10:17:06PM -0800 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Mar 05, 2001 at 10:17:06PM -0800, Bosko Milekic wrote: > bmilekic 2001/03/05 22:17:06 PST > > Modified files: > sys/kern kern_sx.c > sys/sys sx.h > Log: > - Add sx_descr description member to sx lock structure We already have access to three copies of this, in the mutex and in the cv's. There's really no need to embed a fourth copy in the sx structure. =) sx->sx_descr can instead be sx->sx_lock.description (there doesn't appear to be a way to get at this via the mutex API, so this is API abuse) or cv_wmesg(&sx->sx_shrd_cv) or cv_wmesg(&sx->sx_excl_cv). Jason To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message