summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_aio.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2005-11-01 17:13:05 +0000
committerjhb <jhb@FreeBSD.org>2005-11-01 17:13:05 +0000
commit2eddf38ca6603759a7a97d99379fa80288915826 (patch)
treebf091605957a60cbda2809e44420c2dc2709c89c /sys/kern/vfs_aio.c
parent85cdb26faeb92a931e335252d6eac61240aaaf03 (diff)
downloadFreeBSD-src-2eddf38ca6603759a7a97d99379fa80288915826.zip
FreeBSD-src-2eddf38ca6603759a7a97d99379fa80288915826.tar.gz
Push down Giant into fdfree() and remove it from two of the callers.
Other callers such as some rfork() cases weren't locking Giant anyway. Reviewed by: csjp MFC after: 1 week
Diffstat (limited to 'sys/kern/vfs_aio.c')
-rw-r--r--sys/kern/vfs_aio.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/vfs_aio.c b/sys/kern/vfs_aio.c
index 007d1ed..b39f1a6 100644
--- a/sys/kern/vfs_aio.c
+++ b/sys/kern/vfs_aio.c
@@ -894,10 +894,8 @@ aio_daemon(void *uproc)
* Get rid of our current filedescriptors. AIOD's don't need any
* filedescriptors, except as temporarily inherited from the client.
*/
- mtx_lock(&Giant);
fdfree(td);
- mtx_unlock(&Giant);
/* The daemon resides in its own pgrp. */
MALLOC(newpgrp, struct pgrp *, sizeof(struct pgrp), M_PGRP,
M_WAITOK | M_ZERO);
OpenPOWER on IntegriCloud