2007/456 Vnode Specific Data
james wahlig
James.Wahlig at Sun.COM
Thu Aug 9 10:07:17 PDT 2007
John Zolnowsky x69422/408-404-5064 wrote:
>Are there locking constraints for this set of interfaces?
>In particular, can the caller use v_lock to guarantee atomicity
>of the value associated with a key: can one call vsd_set() and
>vsd_get() while holding v_lock?
>
> -JZ
>
>
It is up to the caller to do the protection on vsd_set/get. The caller
could use v_lock to protect it. v_lock is not used in or by vsd. If
the caller wanted to always grab v_lock before doing a vsd_get() and
vsd_get(), that would work.
jim
More information about the opensolaris-arc
mailing list