summaryrefslogtreecommitdiffstats
path: root/sys/coda
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/coda
parent6cbba0bb0370167bd9f9a0d6ef843373f6b8f1c0 (diff)
downloadFreeBSD-src-dba04cd736d55f53d6db22e89a37b13ba56eb759.zip
FreeBSD-src-dba04cd736d55f53d6db22e89a37b13ba56eb759.tar.gz
Lock proctree_lock instead of pgrpsess_lock.
Diffstat (limited to 'sys/coda')
-rw-r--r--sys/coda/coda_venus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/coda/coda_venus.c b/sys/coda/coda_venus.c
index a5b114b..af6b8a9 100644
--- a/sys/coda/coda_venus.c
+++ b/sys/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; \
OpenPOWER on IntegriCloud