diff options
Diffstat (limited to 'sys/fs/specfs')
-rw-r--r-- | sys/fs/specfs/spec_vnops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/fs/specfs/spec_vnops.c b/sys/fs/specfs/spec_vnops.c index 1db8ea4..ef796a3 100644 --- a/sys/fs/specfs/spec_vnops.c +++ b/sys/fs/specfs/spec_vnops.c @@ -587,7 +587,7 @@ spec_close(ap) * plus the session), release the reference from the session. */ oldvp = NULL; - PGRPSESS_XLOCK(); + sx_xlock(&proctree_lock); if (vcount(vp) == 2 && td && (vp->v_flag & VXLOCK) == 0 && vp == td->td_proc->p_session->s_ttyvp) { SESS_LOCK(td->td_proc->p_session); @@ -595,7 +595,7 @@ spec_close(ap) SESS_UNLOCK(td->td_proc->p_session); oldvp = vp; } - PGRPSESS_XUNLOCK(); + sx_xunlock(&proctree_lock); if (oldvp != NULL) vrele(oldvp); /* |