diff options
author | John Baldwin <jhb@FreeBSD.org> | 2005-11-01 17:13:05 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2005-11-01 17:13:05 +0000 |
commit | 68a17869c12298c63e85d9cac9423444c3880460 (patch) | |
tree | bf091605957a60cbda2809e44420c2dc2709c89c /sys/kern/vfs_aio.c | |
parent | 5be4c55feaf02d53e16a23b3a2f2bb1ea8a8768b (diff) | |
download | src-68a17869c12298c63e85d9cac9423444c3880460.tar.gz src-68a17869c12298c63e85d9cac9423444c3880460.zip |
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
Notes
Notes:
svn path=/head/; revision=151932
Diffstat (limited to 'sys/kern/vfs_aio.c')
-rw-r--r-- | sys/kern/vfs_aio.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/vfs_aio.c b/sys/kern/vfs_aio.c index 007d1ed246cb..b39f1a633e20 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); |