- Add a VI_LOCK_FLAGS so we can pass MTX_DUPOK in. This somewhat defeats
the purpose of having macros to hide the lock type as we may now be dependent on MTX_ flags. Sponsored by: Isilon Systems, Inc.
This commit is contained in:
parent
57f66be038
commit
ab9707d7e6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=145423
@ -391,6 +391,7 @@ extern struct vattr va_null; /* predefined null vattr structure */
|
|||||||
extern void (*lease_updatetime)(int deltat);
|
extern void (*lease_updatetime)(int deltat);
|
||||||
|
|
||||||
#define VI_LOCK(vp) mtx_lock(&(vp)->v_interlock)
|
#define VI_LOCK(vp) mtx_lock(&(vp)->v_interlock)
|
||||||
|
#define VI_LOCK_FLAGS(vp, flags) mtx_lock_flags(&(vp)->v_interlock, (flags))
|
||||||
#define VI_TRYLOCK(vp) mtx_trylock(&(vp)->v_interlock)
|
#define VI_TRYLOCK(vp) mtx_trylock(&(vp)->v_interlock)
|
||||||
#define VI_UNLOCK(vp) mtx_unlock(&(vp)->v_interlock)
|
#define VI_UNLOCK(vp) mtx_unlock(&(vp)->v_interlock)
|
||||||
#define VI_MTX(vp) (&(vp)->v_interlock)
|
#define VI_MTX(vp) (&(vp)->v_interlock)
|
||||||
|
Loading…
Reference in New Issue
Block a user