diff options
author | rwatson <rwatson@FreeBSD.org> | 2014-05-02 07:57:40 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2014-05-02 07:57:40 +0000 |
commit | 7ca3cc4389bc98a48e1c007ab40dfa0dafd6943b (patch) | |
tree | b8cc9d270a7c30d10e6e2ea33e21e72c8d06aa7a /sys/sys/mutex.h | |
parent | 382c3dae477fc5ca49cea9603cc1591fe2591140 (diff) | |
download | FreeBSD-src-7ca3cc4389bc98a48e1c007ab40dfa0dafd6943b.zip FreeBSD-src-7ca3cc4389bc98a48e1c007ab40dfa0dafd6943b.tar.gz |
Garbage collect mtxpool_lockbuilder, the mutex pool historically used
for lockmgr and sx interlocks, but unused since optimised versions of
those sleep locks were introduced. This will save a (quite) small
amount of memory in all kernel configurations. The sleep mutex pool is
retained as it is used for 'struct bio' and several other consumers.
Discussed with: jhb
MFC after: 3 days
Diffstat (limited to 'sys/sys/mutex.h')
-rw-r--r-- | sys/sys/mutex.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/sys/mutex.h b/sys/sys/mutex.h index 3d5f08c..4678600 100644 --- a/sys/sys/mutex.h +++ b/sys/sys/mutex.h @@ -323,12 +323,8 @@ struct mtx *mtx_pool_alloc(struct mtx_pool *pool); mtx_unlock_spin(mtx_pool_find((pool), (ptr))) /* - * mtxpool_lockbuilder is a pool of sleep locks that is not witness - * checked and should only be used for building higher level locks. - * * mtxpool_sleep is a general purpose pool of sleep mutexes. */ -extern struct mtx_pool *mtxpool_lockbuilder; extern struct mtx_pool *mtxpool_sleep; #ifndef LOCK_DEBUG |