summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_mtxpool.c
diff options
context:
space:
mode:
authorgreen <green@FreeBSD.org>2002-03-13 23:48:08 +0000
committergreen <green@FreeBSD.org>2002-03-13 23:48:08 +0000
commit9a5e1dcf2178008d16264c9b2bef6a202359e7e0 (patch)
tree201a713546b857434b82daa753dee828523d3743 /sys/kern/kern_mtxpool.c
parent0de282ee42436b5f7422d83ea5ed95dbe7c9868b (diff)
downloadFreeBSD-src-9a5e1dcf2178008d16264c9b2bef6a202359e7e0.zip
FreeBSD-src-9a5e1dcf2178008d16264c9b2bef6a202359e7e0.tar.gz
Rename SI_SUB_MUTEX to SI_SUB_MTX_POOL to make the name at all accurate.
While doing this, move it earlier in the sysinit boot process so that the VM system can use it. After that, the system is now able to use sx locks instead of lockmgr locks in the VM system. To accomplish this, some of the more questionable uses of the locks (such as testing whether they are owned or not, as well as allowing shared+exclusive recursion) are removed, and simpler logic throughout is used so locks should also be easier to understand. This has been tested on my laptop for months, and has not shown any problems on SMP systems, either, so appears quite safe. One more user of lockmgr down, many more to go :)
Diffstat (limited to 'sys/kern/kern_mtxpool.c')
-rw-r--r--sys/kern/kern_mtxpool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_mtxpool.c b/sys/kern/kern_mtxpool.c
index ee1b64b..f0f1208 100644
--- a/sys/kern/kern_mtxpool.c
+++ b/sys/kern/kern_mtxpool.c
@@ -111,5 +111,5 @@ mtx_pool_unlock(void *ptr)
mtx_unlock(_mtx_pool_find(ptr));
}
-SYSINIT(mtxpooli, SI_SUB_MUTEX, SI_ORDER_FIRST, mtx_pool_setup, NULL)
+SYSINIT(mtxpooli, SI_SUB_MTX_POOL, SI_ORDER_FIRST, mtx_pool_setup, NULL)
OpenPOWER on IntegriCloud