svn commit: r284212 - head/sys/kern
Mateusz Guzik
mjg at FreeBSD.org
Wed Jun 10 09:40:08 UTC 2015
Author: mjg
Date: Wed Jun 10 09:40:07 2015
New Revision: 284212
URL: https://svnweb.freebsd.org/changeset/base/284212
Log:
fd: remove fdesc_mtx
Modified:
head/sys/kern/kern_descrip.c
Modified: head/sys/kern/kern_descrip.c
==============================================================================
--- head/sys/kern/kern_descrip.c Wed Jun 10 09:34:50 2015 (r284211)
+++ head/sys/kern/kern_descrip.c Wed Jun 10 09:40:07 2015 (r284212)
@@ -178,9 +178,6 @@ volatile int openfiles; /* actual numb
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);
More information about the svn-src-head
mailing list