diff options
author | tanimura <tanimura@FreeBSD.org> | 2002-05-03 07:46:59 +0000 |
---|---|---|
committer | tanimura <tanimura@FreeBSD.org> | 2002-05-03 07:46:59 +0000 |
commit | 101b936bbcbf5df4649ff52f53a4e12fc2b27ef1 (patch) | |
tree | 20dc7a64fd327af0d4419435627cd614abc25bcb /sys/kern/vfs_aio.c | |
parent | ba261cf2ed3da3e5456f79198fab03cb613643a8 (diff) | |
download | FreeBSD-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.c | 2 |
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); |