[RFC] locking.9
Julian Elischer
julian at elischer.org
Wed Mar 14 04:55:50 UTC 2007
Pawel Jakub Dawidek wrote:
> On Wed, Mar 14, 2007 at 05:29:26AM +0100, Pawel Jakub Dawidek wrote:
>> On Tue, Mar 13, 2007 at 08:54:10PM -0700, Julian Elischer wrote:
>>> Julian Elischer wrote:
>>>
>>>> ok so how about I commit this to get us started and the nroff and
>>>> locking experts can take it from there.
>>> The first table I think may look like this (from quick reading.. but I may be wrong):
>>>
>>>
>>> The following table shows what you can and can not do if you hold one of
>>> the synchronisation primatives discussed here: (someone who knows what
>>> they are talking about should write this table)
>> I think it should be:
>>
>>> You have: You want: Spin_mtx Slp_mtx sx_lock rw_lock sleep
>>> SPIN mutex ok no no no no-3
>>> Sleep mutex ok ok-1 no ok no-3
>>> sx_lock ok no ?? no ok-4
>> sx_lock ok ok ok-2 ok ok
>>> rw_lock ok no no ok-2 no-3
>> rw_lock ok ok no ok-2 no
>
> I'd also add:
>
> You're in: You want: Spin_mtx Slp_mtx sx_lock rw_lock sleep
> interrupt\ ok no no no no
> context
>
I checked it in..
go for it!
:-)
More information about the freebsd-current
mailing list