summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_rmlock.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove extra spaces (no functional change).bz2009-12-251-6/+6
| | | | MFC after: 3 days
* Minor comment tweaks in rmlocks.rwatson2009-12-251-5/+5
| | | | MFC after: 3 days
* Minor style tweak.rwatson2009-05-291-1/+2
|
* Since sched_pin() and sched_unpin() are already inlined, don't manuallyrwatson2009-05-291-2/+2
| | | | inline in rmlocks.
* Make the rmlock(9) interface a bit more like the rwlock(9) interface:rwatson2009-05-291-6/+26
| | | | | | | | | | | | | | - Add rm_init_flags() and accept extended options only for that variation. - Add a flags space specifically for rm_init_flags(), rather than borrowing the lock_init() flag space. - Define flag RM_RECURSE to use instead of LO_RECURSABLE. - Define flag RM_NOWITNESS to allow an rmlock to be exempt from WITNESS checking; this wasn't possible previously as rm_init() always passed LO_WITNESS when initializing an rmlock's struct lock. - Add RM_SYSINIT_FLAGS(). - Rename embedded mutex in rmlocks to make it more obvious what it is. - Update consumers. - Update man page.
* Add the OpenSolaris dtrace lockstat provider. The lockstat providersson2009-05-261-0/+16
| | | | | | | | | | adds probes for mutexes, reader/writer and shared/exclusive locks to gather contention statistics and other locking information for dtrace scripts, the lockstat(1M) command and other potential consumers. Reviewed by: attilio jhb jb Approved by: gnn (mentor)
* Improve approximation of style(9).rwatson2009-04-261-149/+132
|
* Teach WITNESS about the interlocks used with lockmgr. This removes a bunchjhb2008-09-101-2/+2
| | | | | | | | of spurious witness warnings since lockmgr grew witness support. Before this, every time you passed an interlock to a lockmgr lock WITNESS treated it as a LOR. Reviewed by: attilio
* Expand lock class with the "virtual" function lc_assert which will offerattilio2007-11-181-0/+9
| | | | | | | | | an unified way for all the lock primitives to express lock assertions. Currenty, lockmgrs and rmlocks don't have assertions, so just panic in that case. This will be a base for more callout improvements. Ok'ed by: jhb, jeff
* Add rm_wowned(9) function to test whether the current thread owns anrwatson2007-11-101-0/+7
| | | | | | exclusive lock on the passed rmlock. Reviewed by: ups
* Initial checkin for rmlock (read mostly lock) a multi reader single writerups2007-11-081-0/+500
lock optimized for almost exclusive reader access. (see also rmlock.9) TODO: Convert to per cpu variables linkerset as soon as it is available. Optimize UP (single processor) case.
OpenPOWER on IntegriCloud