#
70a7648c |
| 09-Oct-2017 |
mpi <mpi@openbsd.org> |
Make _kernel_lock_held() always succeed after panic(9).
ok visa@
|
#
893e744c |
| 20-Apr-2017 |
visa <visa@openbsd.org> |
Drop unnecessary headers. This fixes kernel build on platforms without <machine/mplock.h>.
|
#
25753472 |
| 20-Apr-2017 |
visa <visa@openbsd.org> |
Hook up mplock to witness(4) on amd64 and i386.
|
#
26b8ec94 |
| 19-Jun-2016 |
natano <natano@openbsd.org> |
Remove the lockmgr() API. It is only used by filesystems, where it is a trivial change to use rrw locks instead. All it needs is LK_* defines for the RW_* flags.
tested by naddy and sthen on package
Remove the lockmgr() API. It is only used by filesystems, where it is a trivial change to use rrw locks instead. All it needs is LK_* defines for the RW_* flags.
tested by naddy and sthen on package building infrastructure input and ok jmc mpi tedu
show more ...
|
#
7f58a11f |
| 14-Sep-2014 |
jsg <jsg@openbsd.org> |
remove uneeded proc.h includes ok mpi@ kspillner@
|
#
ca86693b |
| 13-Jul-2014 |
uebayasi <uebayasi@openbsd.org> |
KERNEL_ASSERT_LOCKED(9): Assertion for kernel lock (Rev. 3)
This adds a new assertion macro, KERNEL_ASSERT_LOCKED(), to assert that kernel_lock is held. In the long process of removing kernel_lock,
KERNEL_ASSERT_LOCKED(9): Assertion for kernel lock (Rev. 3)
This adds a new assertion macro, KERNEL_ASSERT_LOCKED(), to assert that kernel_lock is held. In the long process of removing kernel_lock, there will be a lot (hundreds or thousands) of use of this; virtually almost all functions in !MP-safe subsystems should have this assertion. Thus this assertion should have a short, good name.
Not only that "KERNEL_ASSERT_LOCKED" is consistent with other KERNEL_* and SCHED_ASSERT_LOCKED() macros.
Input from dlg@ guenther@ kettenis@.
OK dlg@ guenther@
show more ...
|
#
a5d9e1e8 |
| 09-Jul-2014 |
guenther <guenther@openbsd.org> |
Teach rw_status() and rrw_status() to return LK_EXCLOTHER if it's write locked by a different thread. Teach lockstatus() to return LK_EXCLUSIVE if an exclusive lock is held by some other thread.
ok
Teach rw_status() and rrw_status() to return LK_EXCLOTHER if it's write locked by a different thread. Teach lockstatus() to return LK_EXCLUSIVE if an exclusive lock is held by some other thread.
ok beck@ tedu@
show more ...
|
#
91ba896d |
| 21-Jan-2014 |
tedu <tedu@openbsd.org> |
bzero -> memset
|
#
f6126bad |
| 06-May-2013 |
tedu <tedu@openbsd.org> |
restore original gangster lockstatus return values for compat
|
#
0c9b2c0b |
| 01-May-2013 |
tedu <tedu@openbsd.org> |
a few tweaks noticed by jsing
|
#
fe074e2a |
| 01-May-2013 |
tedu <tedu@openbsd.org> |
exorcise lockmgr. the api remains, but is now backed by recursive rwlocks. originally by thib. ok deraadt jsing and anyone who tested
|
#
2f360485 |
| 28-Mar-2013 |
deraadt <deraadt@openbsd.org> |
do not include machine/cpu.h from a .c file; it is the responsibility of .h files to pull it in, if needed ok tedu
|
#
ea8bd716 |
| 28-Aug-2011 |
guenther <guenther@openbsd.org> |
lockmgr() wants to use a different address for the wchan when draining the lock, but a change in member ordering meant it was using the same address. Explicitly use different members instead of mixi
lockmgr() wants to use a different address for the wchan when draining the lock, but a change in member ordering meant it was using the same address. Explicitly use different members instead of mixing address of member and address of the lock itself.
ok miod@
show more ...
|
#
971e1bb6 |
| 06-Jul-2011 |
art <art@openbsd.org> |
Clean up after P_BIGLOCK removal. KERNEL_PROC_LOCK -> KERNEL_LOCK KERNEL_PROC_UNLOCK -> KERNEL_UNLOCK
oga@ ok
|
#
e57a349a |
| 06-Jul-2011 |
art <art@openbsd.org> |
Stop using the P_BIGLOCK flag to figure out when we should release the biglock in mi_switch and just check if we're holding the biglock.
The idea is that the first entry point into the kernel uses K
Stop using the P_BIGLOCK flag to figure out when we should release the biglock in mi_switch and just check if we're holding the biglock.
The idea is that the first entry point into the kernel uses KERNEL_PROC_LOCK and recursive calls use KERNEL_LOCK. This assumption is violated in at least one place and has been causing confusion for lots of people.
Initial bug report and analysis from Pedro.
kettenis@ beck@ oga@ thib@ dlg@ ok
show more ...
|
#
56c04664 |
| 26-Apr-2010 |
deraadt <deraadt@openbsd.org> |
cut down simple locks (so simple that they don't even lock) to the point where there is almost nothing left to them, so that we can continue getting rid of them ok oga
|
#
a3c911ba |
| 14-Jan-2010 |
schwarze <schwarze@openbsd.org> |
fix typos in comments, no code changes; from Brad Tilley <brad at 16systems dot com>; ok oga@
|
#
de99c4e0 |
| 25-Mar-2009 |
oga <oga@openbsd.org> |
ntfs was the last user, LK_SLEEFAIL can die now.
ok blambert@
|
#
04890581 |
| 15-Jan-2009 |
grange <grange@openbsd.org> |
Surround WEHOLDIT() macro with braces to make it more safe. No binary change.
ok otto@
|
#
8632a1ed |
| 26-Nov-2007 |
art <art@openbsd.org> |
Remove some dead code that is confusing my greps.
|
#
eb44c310 |
| 31-May-2007 |
thib <thib@openbsd.org> |
remove p_lock from struct proc; unused debug goo for lockmgr, wich gets set and never checked etc...
ok art@,tedu@
|
#
aaa6d8b7 |
| 11-May-2007 |
pedro <pedro@openbsd.org> |
Don't use LK_CANRECURSE for the kernel lock, okay miod@ art@
|
#
9925e6dc |
| 08-May-2007 |
deraadt <deraadt@openbsd.org> |
lockmgr_printinfo() is only called from #ifdef DIAGNOSTIC positions, so #ifdef DIAGNOSTIC it too
|
#
835dcf15 |
| 12-Apr-2007 |
thib <thib@openbsd.org> |
Remove the lk_interlock from struct lock; Also remove the LK_INTERLOCK flag. This effectively makes the simplelock argument to lockmgr() fluff.
ok miod@
|
#
3c16e060 |
| 11-Apr-2007 |
miod <miod@openbsd.org> |
lockmgr keeps losing code, call 911!
ok pedro@ art@
|