According to my reading of kern_lock.c, it does support shared lock.
However, we are still using LK_EXCLUSIVE mode more often than necessary.
If I want to look up a directory or to read a buffer, I should be able to
use the LK_SHARED lock. Right now, only few places I have found using
LK_SHARED, like in vn_read(). Is there any reason behind this?  If I want
to change this in my code, is there anything I should pay special
attention to? Thanks.

-Zhihui


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to