summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_descrip.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/kern_descrip.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/kern_descrip.c')
-rw-r--r--sys/kern/kern_descrip.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c
index 9e9f1de..3e15012 100644
--- a/sys/kern/kern_descrip.c
+++ b/sys/kern/kern_descrip.c
@@ -601,9 +601,7 @@ funsetownlst(sigiolst)
PGRP_UNLOCK(pg);
SIGIO_UNLOCK();
crfree(sigio->sio_ucred);
- mtx_lock(&Giant);
FREE(sigio, M_SIGIO);
- mtx_unlock(&Giant);
SIGIO_LOCK();
PGRP_LOCK(pg);
} else /* if (p != NULL) */ {
@@ -613,9 +611,7 @@ funsetownlst(sigiolst)
PROC_UNLOCK(p);
SIGIO_UNLOCK();
crfree(sigio->sio_ucred);
- mtx_lock(&Giant);
FREE(sigio, M_SIGIO);
- mtx_unlock(&Giant);
SIGIO_LOCK();
PROC_LOCK(p);
}
OpenPOWER on IntegriCloud