summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_exit.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/kern_exit.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/kern_exit.c')
-rw-r--r--sys/kern/kern_exit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c
index 25ca5b8..6107a00 100644
--- a/sys/kern/kern_exit.c
+++ b/sys/kern/kern_exit.c
@@ -235,6 +235,7 @@ retry:
*/
mtx_lock(&Giant); /* XXX: not sure if needed */
funsetownlst(&p->p_sigiolst);
+ mtx_unlock(&Giant);
/*
* If this process has an nlminfo data area (for lockd), release it
@@ -247,7 +248,6 @@ retry:
* This may block!
*/
fdfree(td);
- mtx_unlock(&Giant);
/*
* If this thread tickled GEOM, we need to wait for the giggling to
OpenPOWER on IntegriCloud