summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_aio.c
diff options
context:
space:
mode:
authortanimura <tanimura@FreeBSD.org>2002-04-20 12:02:52 +0000
committertanimura <tanimura@FreeBSD.org>2002-04-20 12:02:52 +0000
commite2acd5cecf61f060255d467b8d38cd35f941fb1c (patch)
treedb003c23254ef3cdf9c6c9bea269469378e11e7d /sys/kern/vfs_aio.c
parent487a22adbf7d14b574b29683ada3bc989bbfb261 (diff)
downloadFreeBSD-src-e2acd5cecf61f060255d467b8d38cd35f941fb1c.zip
FreeBSD-src-e2acd5cecf61f060255d467b8d38cd35f941fb1c.tar.gz
Push down Giant for setpgid(), setsid() and aio_daemon(). Giant protects only
malloc(9) and free(9).
Diffstat (limited to 'sys/kern/vfs_aio.c')
-rw-r--r--sys/kern/vfs_aio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/vfs_aio.c b/sys/kern/vfs_aio.c
index a7e630c..46c227e 100644
--- a/sys/kern/vfs_aio.c
+++ b/sys/kern/vfs_aio.c
@@ -794,9 +794,11 @@ aio_daemon(void *uproc)
MALLOC(newsess, struct session *, sizeof(struct session), M_SESSION,
M_WAITOK | M_ZERO);
+ mtx_unlock(&Giant);
sx_xlock(&proctree_lock);
enterpgrp(mycp, mycp->p_pid, newpgrp, newsess);
sx_xunlock(&proctree_lock);
+ mtx_lock(&Giant);
/* Mark special process type. */
mycp->p_flag |= P_SYSTEM;
OpenPOWER on IntegriCloud