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/kern_descrip.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/kern_descrip.c')
-rw-r--r-- | sys/kern/kern_descrip.c | 4 |
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); } |