summaryrefslogtreecommitdiff
path: root/sys/kern/vfs_aio.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2002-04-16 17:11:34 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2002-04-16 17:11:34 +0000
commitba626c1db26edacaf665cdfd199cfe6480c7fb9c (patch)
tree0dbfaf0504ea8a7e7591f231c8e177a948a68da3 /sys/kern/vfs_aio.c
parent596325f15455198a20231d34cbcb59089dcdf353 (diff)
Notes
Diffstat (limited to 'sys/kern/vfs_aio.c')
-rw-r--r--sys/kern/vfs_aio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_aio.c b/sys/kern/vfs_aio.c
index 3488227f8fb8..a7e630c9c119 100644
--- a/sys/kern/vfs_aio.c
+++ b/sys/kern/vfs_aio.c
@@ -794,9 +794,9 @@ aio_daemon(void *uproc)
MALLOC(newsess, struct session *, sizeof(struct session), M_SESSION,
M_WAITOK | M_ZERO);
- PGRPSESS_XLOCK();
+ sx_xlock(&proctree_lock);
enterpgrp(mycp, mycp->p_pid, newpgrp, newsess);
- PGRPSESS_XUNLOCK();
+ sx_xunlock(&proctree_lock);
/* Mark special process type. */
mycp->p_flag |= P_SYSTEM;