summaryrefslogtreecommitdiff
path: root/sys/kern/kern_rwlock.c
AgeCommit message (Expand)Author
2022-05-10Our read/write lock implementation was not fair to writers. WhenAlexander Bluhm
2021-02-08Simplify sleep_setup API to two operations in preparation for splittingMartin Pieuchot
2021-01-11New rw_obj_init() API providing reference-counted rwlock.Martin Pieuchot
2020-03-02Fix use of WITNESS_UNLOCK() in rw_exit_read() and rw_exit_write().Visa Hankala
2019-11-30Move kernel locking inside the sleep machinery. This enables callingVisa Hankala
2019-11-29Use RW_PROC() consistently.Martin Pieuchot
2019-11-16Provide exact lock assertions for rwlocks when witness(4) is enabled.Visa Hankala
2019-11-12Only check if the current thread has the lock in rw_assert_unlocked(9).Martin Pieuchot
2019-07-16Make rrw_init/rrw_init_flags take a const name argument matchingJonathan Gray
2019-05-11make rw-lock adaptiveAlexandr Nedvedicky
2019-04-23Remove file name and line number output from witness(4)Visa Hankala
2018-06-08Constipate all the struct lock_type's so they go into .rodataPhilip Guenther
2018-06-04Add RW_DUPOK for suppressing witness checks for specific rw_enter() callsPhilip Guenther
2018-03-21Disable the rw lock assertion after panic. Allows reboot from ddb.Alexander Bluhm
2018-03-20Do not panic from ddb(4) when a lock requirement isn't fulfilled.Martin Pieuchot
2017-12-18Make rw_exit() always succeed after a panic.Martin Pieuchot
2017-10-24Use membar_enter_after_atomic(9) amd membar_exit_before_atomic(9).Martin Pieuchot
2017-10-12Use a temporary variable in rw_status() to dereference only once theMartin Pieuchot
2017-08-12Add rw_assert_anylock(), for assering you have it either read or write lockedPhilip Guenther
2017-08-10Make rw_enter() always succeed after a panic.Martin Pieuchot
2017-04-20Hook up rwlock(9) to witness(4).Visa Hankala
2015-03-14add sys/atomic.h back for membar_* needed for at least armv7Jonathan Gray
2015-03-14Remove some includes include-what-you-use claims don'tJonathan Gray
2015-02-11make the rwlock implementation MI.David Gwynne
2015-02-10remove #ifndef handling of __HAVE_MD_RWLOCK. it's never set, and with aDavid Gwynne
2014-09-01Add explicit membars, so that we can stop requiring rw_cas() toPhilip Guenther
2014-07-09Teach rw_status() and rrw_status() to return LK_EXCLOTHER if it's writePhilip Guenther
2014-01-21bzero -> memsetTed Unangst
2013-05-06restore original gangster lockstatus return values for compatTed Unangst
2013-05-01a few tweaks noticed by jsingTed Unangst
2013-05-01exorcise lockmgr. the api remains, but is now backed by recursive rwlocks.Ted Unangst
2011-07-05Replace expanded version of RW_PROC() with the macro.Tobias Weingartner
2010-09-24Add stricter asserts to DIAGNOSTIC kernels to help catch mutex andMatthew Dempsky
2009-08-13Remove unrelated bit from last commit which breaks at least 2 arches.Bret Lambert
2009-08-13rwlock assertion functions, currently unusedBret Lambert
2007-05-13print lock name in some panic messages so we know what's upTed Unangst
2007-05-04Kill a dead variable.Artur Grabowski
2007-05-04- Rename rw_test_and_set to rw_cas, since most litterature uses theArtur Grabowski
2007-04-04Implement RW_DOWNGRADE that downgrades an exclusive lock to a shared lockArtur Grabowski
2006-11-30s/completly/completely/Michael Knudsen
2006-06-02remove upgrade/downgrade, they are useless.Ted Unangst
2006-05-07add a name to rwlock so that we can tell where procs are getting stuckTed Unangst
2006-04-20much -> mustPedro Martelletto
2006-01-06oring in PCATCH doesn't help if we don't pass the right prio to tsleepTed Unangst
2006-01-06check in of "rwlock.20051230" from art.Ted Unangst
2004-07-21I was wrong. The assymetry created by the proc argument to rw_enter_writeArtur Grabowski
2003-11-18don't leave test code enabled, spotted Dries SchellekensTed Unangst
2003-11-18add lightwight reader/writer locks from art@. we will be using theseTed Unangst