summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_aio.c
diff options
context:
space:
mode:
authortanimura <tanimura@FreeBSD.org>2002-05-03 07:46:59 +0000
committertanimura <tanimura@FreeBSD.org>2002-05-03 07:46:59 +0000
commit101b936bbcbf5df4649ff52f53a4e12fc2b27ef1 (patch)
tree20dc7a64fd327af0d4419435627cd614abc25bcb /sys/kern/vfs_aio.c
parentba261cf2ed3da3e5456f79198fab03cb613643a8 (diff)
downloadFreeBSD-src-101b936bbcbf5df4649ff52f53a4e12fc2b27ef1.zip
FreeBSD-src-101b936bbcbf5df4649ff52f53a4e12fc2b27ef1.tar.gz
As malloc(9) and free(9) are now Giant-free, remove the Giant lock
across malloc(9) and free(9) of a pgrp or a session.
Diffstat (limited to 'sys/kern/vfs_aio.c')
-rw-r--r--sys/kern/vfs_aio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_aio.c b/sys/kern/vfs_aio.c
index 46c227e..499d4b7 100644
--- a/sys/kern/vfs_aio.c
+++ b/sys/kern/vfs_aio.c
@@ -788,13 +788,13 @@ aio_daemon(void *uproc)
fdfree(td);
mycp->p_fd = NULL;
+ mtx_unlock(&Giant);
/* The daemon resides in its own pgrp. */
MALLOC(newpgrp, struct pgrp *, sizeof(struct pgrp), M_PGRP,
M_WAITOK | M_ZERO);
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);
OpenPOWER on IntegriCloud