summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormjg <mjg@FreeBSD.org>2015-06-10 09:40:07 +0000
committermjg <mjg@FreeBSD.org>2015-06-10 09:40:07 +0000
commit59391cba660199284969090c9993ba04ba5846c7 (patch)
treeef82b9d6c2c89ea55393a164c26ff1fa43db3509
parent34814bbfee78c6ce02f8dbfa7c2a287f529f832f (diff)
downloadFreeBSD-src-59391cba660199284969090c9993ba04ba5846c7.zip
FreeBSD-src-59391cba660199284969090c9993ba04ba5846c7.tar.gz
fd: remove fdesc_mtx
-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 c2bd0ca..98a15d8 100644
--- a/sys/kern/kern_descrip.c
+++ b/sys/kern/kern_descrip.c
@@ -178,9 +178,6 @@ volatile int openfiles; /* actual number of open files */
struct mtx sigio_lock; /* mtx to protect pointers to sigio */
void (*mq_fdclose)(struct thread *td, int fd, struct file *fp);
-/* A mutex to protect the association between a proc and filedesc. */
-static struct mtx fdesc_mtx;
-
/*
* If low >= size, just return low. Otherwise find the first zero bit in the
* given bitmap, starting at low and not exceeding size - 1. Return size if
@@ -3642,7 +3639,6 @@ filelistinit(void *dummy)
filedesc0_zone = uma_zcreate("filedesc0", sizeof(struct filedesc0),
NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, 0);
mtx_init(&sigio_lock, "sigio lock", NULL, MTX_DEF);
- mtx_init(&fdesc_mtx, "fdesc", NULL, MTX_DEF);
}
SYSINIT(select, SI_SUB_LOCK, SI_ORDER_FIRST, filelistinit, NULL);
OpenPOWER on IntegriCloud