diff options
author | alc <alc@FreeBSD.org> | 2003-07-25 22:26:43 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2003-07-25 22:26:43 +0000 |
commit | 90dbdc0a7e3841c1ba9d25c597611f08c6384c20 (patch) | |
tree | b5294a7e063ed006f2013eb6300fa6d825553d2c /sys | |
parent | 1ee51e40bb5242c150f36b7dac5cc062f8f85fb5 (diff) | |
download | FreeBSD-src-90dbdc0a7e3841c1ba9d25c597611f08c6384c20.zip FreeBSD-src-90dbdc0a7e3841c1ba9d25c597611f08c6384c20.tar.gz |
revision 1.51 of vm/uma_core.c modified uma_large_malloc() to acquire
Giant when needed.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_descrip.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c index acda3f3..3e7c660 100644 --- a/sys/kern/kern_descrip.c +++ b/sys/kern/kern_descrip.c @@ -1092,13 +1092,7 @@ fdalloc(td, want, result) while (nfiles < want) nfiles <<= 1; FILEDESC_UNLOCK(fdp); - /* - * XXX malloc() calls uma_large_malloc() for sizes larger - * than KMEM_ZMAX bytes. uma_large_malloc() requires Giant. - */ - mtx_lock(&Giant); newofile = malloc(nfiles * OFILESIZE, M_FILEDESC, M_WAITOK); - mtx_unlock(&Giant); /* * Deal with file-table extend race that might have |