Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Jun 2006 07:01:01 +0000
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        Robert Watson <rwatson@FreeBSD.org>
Cc:        current@FreeBSD.org, Kris Kennaway <kris@obsecurity.org>
Subject:   Re: FILEDESC_LOCK() implementation 
Message-ID:  <34009.1150095661@critter.freebsd.dk>
In-Reply-To: Your message of "Mon, 12 Jun 2006 07:59:16 %2B0100." <20060612075515.C26634@fledge.watson.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <20060612075515.C26634@fledge.watson.org>, Robert Watson writes:

>What we probably want is an sx_init_interlock() that allows us to provide the 
>interlock for an sx lock, wich some variations on sx_*lock() to say we already 
>hold the interlock. 

Sounds overly complicated to use.

Why not just a sx_xlockfast() sx_xunlockfast() ? for some value of "fast" ?

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?34009.1150095661>