summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_mtxpool.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix a number of style issues in the MALLOC / FREE commit. I've tried todes2008-10-231-1/+2
| | | | | be careful not to fix anything that was already broken; the NFSv4 code is particularly bad in this respect.
* Retire the MALLOC and FREE macros. They are an abomination unto style(9).des2008-10-231-4/+3
| | | | MFC after: 3 months
* Universally adopt most conventional spelling of acquire.rwatson2007-05-271-1/+1
|
* Make a bunch of malloc types static.phk2005-02-101-1/+1
| | | | Found by: src/tools/tools/kernxref
* Expand COPYRIGHT inline, per Matthew Dillon's earlier approval.imp2005-01-061-4/+24
|
* Rearrange the SYSINIT order to call lockmgr_init() earlier so thattruckman2003-07-161-1/+1
| | | | | | the runtime lockmgr initialization code in lockinit() can be eliminated. Reviewed by: jhb
* Extend the mutex pool implementation to permit the creation and use oftruckman2003-07-131-54/+133
| | | | | | | | | | | | | | | | multiple mutex pools with different options and sizes. Mutex pools can be created with either the default sleep mutexes or with spin mutexes. A dynamically created mutex pool can now be destroyed if it is no longer needed. Create two pools by default, one that matches the existing pool that uses the MTX_NOWITNESS option that should be used for building higher level locks, and a new pool with witness checking enabled. Modify the users of the existing mutex pool to use the appropriate pool in the new implementation. Reviewed by: jhb
* Style(9).mux2003-06-131-14/+17
|
* Use __FBSDID().obrien2003-06-111-2/+3
|
* Change callers of mtx_init() to pass in an appropriate lock type name. Injhb2002-04-041-1/+1
| | | | | | | most cases NULL is passed, but in some cases such as network driver locks (which use the MTX_NETWORK_LOCK macro) and UMA zone locks, a name is used. Tested on: i386, alpha, sparc64
* Rename SI_SUB_MUTEX to SI_SUB_MTX_POOL to make the name at all accurate.green2002-03-131-1/+1
| | | | | | | | | | | | | | | | 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 :)
* cast hashing index to (int)(intptr_t) for calculation.dillon2001-11-191-3/+3
| | | | mtx_init() with MTX_QUIET and MTX_NOWITNESS to avoid bogus warnings
* Fix some warnings on 64 bit platforms.peter2001-11-171-1/+4
|
* Create a mutex pool API for short term leaf mutexes.dillon2001-11-131-0/+112
Replace the manual mutex pool in kern_lock.c (lockmgr locks) with the new API. Replace the mutexes embedded in sxlocks with the new API.
OpenPOWER on IntegriCloud