summaryrefslogtreecommitdiff
path: root/sys/kern/kern_lock.c
AgeCommit message (Expand)Author
2022-04-26Bump __mp_lock_spinout to INT_MAX.Dave Voutila
2020-03-05The 'lock spun out' db_printf needs a newline. All other MP_LOCKDEBUGClaudio Jeker
2019-06-04Let SP kernel work with WITNESS. The necessary instrumentation wasVisa Hankala
2019-04-23Remove file name and line number output from witness(4)Visa Hankala
2019-03-23Add a simple spinning mutex for ddb. Unlike mutex(9), this lock keepsVisa Hankala
2019-02-25Fix memory barrier in __mtx_leave(). membar_exit_before_atomic() cannotVisa Hankala
2018-06-15Simplify #ifdefs. The kernel_lock symbol is no longer needed whenVisa Hankala
2018-06-08Constipate all the struct lock_type's so they go into .rodataPhilip Guenther
2018-05-14Stopping counting and reporting CPU time spent spinning on a lock asMartin Pieuchot
2018-04-26Drop into ddb(4) if pmap_tlb_shoot*() take too much time in MP_LOCKDEBUGMartin Pieuchot
2018-04-25Teach mtx_enter_try(9) to avoid deadlocks after a panic.Martin Pieuchot
2018-03-27Try harder to execute code protected by mutexes after entering ddb(4).Martin Pieuchot
2018-03-20Do not panic from ddb(4) when a lock requirement isn't fulfilled.Martin Pieuchot
2018-02-19Include <sys/mutex.h> directly instead of relying on other headers toMartin Pieuchot
2018-02-19Directly include sys/mplock.h when needed instead of depending onJonathan Gray
2018-02-14Put WITNESS only functions with the rest of the locking primitives.Martin Pieuchot
2018-02-10Merge license blocks now that they are identical.Martin Pieuchot
2018-02-10Artur Grabowski agreed to relicense his C mutex implementation under ISC.Martin Pieuchot
2018-02-08Remove CSRG copyright, there isn't any code left from Berkeley here.Martin Pieuchot
2018-01-25Move common mutex implementations to a MI place.Martin Pieuchot
2017-12-04Change __mp_lock_held() to work with an arbitrary CPU info structure andMartin Pieuchot
2017-10-17Add a machine-independent implementation for the mplock.Visa Hankala
2017-10-09Make _kernel_lock_held() always succeed after panic(9).Martin Pieuchot
2017-04-20Drop unnecessary headers. This fixes kernel build on platformsVisa Hankala
2017-04-20Hook up mplock to witness(4) on amd64 and i386.Visa Hankala
2016-06-19Remove the lockmgr() API. It is only used by filesystems, where it is aMartin Natano
2014-09-14remove uneeded proc.h includesJonathan Gray
2014-07-13KERNEL_ASSERT_LOCKED(9): Assertion for kernel lock (Rev. 3)Masao Uebayashi
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
2013-03-28do not include machine/cpu.h from a .c file; it is the responsibility ofTheo de Raadt
2011-08-28lockmgr() wants to use a different address for the wchan when drainingPhilip Guenthe
2011-07-06Clean up after P_BIGLOCK removal.Artur Grabowski
2011-07-06Stop using the P_BIGLOCK flag to figure out when we should release theArtur Grabowski
2010-04-26cut down simple locks (so simple that they don't even lock) to the pointTheo de Raadt
2010-01-14fix typos in comments, no code changes;Ingo Schwarze
2009-03-25ntfs was the last user, LK_SLEEFAIL can die now.Owain Ainsworth
2009-01-15Surround WEHOLDIT() macro with braces to make it more safe.Alexander Yurchenko
2007-11-26Remove some dead code that is confusing my greps.Artur Grabowski
2007-05-31remove p_lock from struct proc; unused debug goo for lockmgr,Thordur I. Bjornsson
2007-05-11Don't use LK_CANRECURSE for the kernel lock, okay miod@ art@Pedro Martelletto
2007-05-08lockmgr_printinfo() is only called from #ifdef DIAGNOSTIC positions, so #ifde...Theo de Raadt
2007-04-12Remove the lk_interlock from struct lock; Also remove the LK_INTERLOCKThordur I. Bjornsson
2007-04-11lockmgr keeps losing code, call 911!Miod Vallat
2007-03-15Since p_flag is often manipulated in interrupts and without biglockArtur Grabowski
2007-02-14Consistently spell FALLTHROUGH to appease lint.Jonathan Gray
2007-02-03Remove unused functionality from lockmgr():Miod Vallat