summaryrefslogtreecommitdiffstats
path: root/sys/fs/specfs
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2002-04-16 17:11:34 +0000
committerjhb <jhb@FreeBSD.org>2002-04-16 17:11:34 +0000
commitdba04cd736d55f53d6db22e89a37b13ba56eb759 (patch)
tree0dbfaf0504ea8a7e7591f231c8e177a948a68da3 /sys/fs/specfs
parent6cbba0bb0370167bd9f9a0d6ef843373f6b8f1c0 (diff)
downloadFreeBSD-src-dba04cd736d55f53d6db22e89a37b13ba56eb759.zip
FreeBSD-src-dba04cd736d55f53d6db22e89a37b13ba56eb759.tar.gz
Lock proctree_lock instead of pgrpsess_lock.
Diffstat (limited to 'sys/fs/specfs')
-rw-r--r--sys/fs/specfs/spec_vnops.c4
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);
/*
OpenPOWER on IntegriCloud