summaryrefslogtreecommitdiffstats
path: root/sys/fs
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
parent6cbba0bb0370167bd9f9a0d6ef843373f6b8f1c0 (diff)
downloadFreeBSD-src-dba04cd736d55f53d6db22e89a37b13ba56eb759.zip
FreeBSD-src-dba04cd736d55f53d6db22e89a37b13ba56eb759.tar.gz
Lock proctree_lock instead of pgrpsess_lock.
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/coda/coda_venus.c4
-rw-r--r--sys/fs/specfs/spec_vnops.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/fs/coda/coda_venus.c b/sys/fs/coda/coda_venus.c
index a5b114b..af6b8a9 100644
--- a/sys/fs/coda/coda_venus.c
+++ b/sys/fs/coda/coda_venus.c
@@ -95,11 +95,11 @@
#define INIT_IN(in, op, ident, p) \
(in)->opcode = (op); \
- PGRPSESS_SLOCK(); \
+ sx_slock(&proctree_lock); \
(in)->pid = p ? p->p_pid : -1; \
(in)->pgid = p ? p->p_pgid : -1; \
(in)->sid = (p && p->p_session && p->p_session->s_leader) ? (p->p_session->s_leader->p_pid) : -1; \
- PGRPSESS_SUNLOCK(); \
+ sx_sunlock(&proctree_lock); \
if (ident != NOCRED) { \
(in)->cred.cr_uid = ident->cr_uid; \
(in)->cred.cr_groupid = ident->cr_gid; \
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