summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/kern/kern_descrip.c6
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
OpenPOWER on IntegriCloud