diff options
author | jhb <jhb@FreeBSD.org> | 2002-04-16 17:11:34 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2002-04-16 17:11:34 +0000 |
commit | dba04cd736d55f53d6db22e89a37b13ba56eb759 (patch) | |
tree | 0dbfaf0504ea8a7e7591f231c8e177a948a68da3 /sys/kern/vfs_aio.c | |
parent | 6cbba0bb0370167bd9f9a0d6ef843373f6b8f1c0 (diff) | |
download | FreeBSD-src-dba04cd736d55f53d6db22e89a37b13ba56eb759.zip FreeBSD-src-dba04cd736d55f53d6db22e89a37b13ba56eb759.tar.gz |
Lock proctree_lock instead of pgrpsess_lock.
Diffstat (limited to 'sys/kern/vfs_aio.c')
-rw-r--r-- | sys/kern/vfs_aio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_aio.c b/sys/kern/vfs_aio.c index 3488227..a7e630c 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; |