cvs commit: src/sys/kern subr_witness.c

John-Mark Gurney gurney_j at resnet.uoregon.edu
Sat Feb 3 04:14:40 UTC 2007


Konstantin Belousov wrote this message on Fri, Feb 02, 2007 at 09:02 +0000:
> kib         2007-02-02 09:02:19 UTC
> 
>   FreeBSD src repository
> 
>   Modified files:
>     sys/kern             subr_witness.c 
>   Log:
>   Record kqueue -> struct mount mtx -> vnode interlock lock order to
>   catch the places where reverse lock order is instantiated.

Umm... does the above mean that kqueue can be obtained before mount,
and vnode interlock's?  If so, that is incorrect, and it needs to be
that the kqueue lock is last...  The lock order the kqueue is knlist
lock -> kqueue lock...  Where knlist lock is the lock that protects
the object (or knlist belonging to the object)...

Do we have a way to signify that you do not obtain another lock once
you have obtained the kqueue lock?

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."


More information about the cvs-src mailing list