| #
8479531b |
| 07-Sep-2023 |
ad <ad@NetBSD.org> |
Remove dodgy and unused mutex_owner_running() & rw_owner_running().
|
| #
3838843a |
| 09-Jul-2023 |
riastradh <riastradh@NetBSD.org> |
sys/rwlock.h: Make this more self-contained for bool.
XXX pullup-10
|
| #
7fbe66c3 |
| 26-Oct-2022 |
riastradh <riastradh@NetBSD.org> |
rwlock(9): Nix extern _rw_init in .c; use sys/rwlock.h.
|
| #
284662e2 |
| 22-Feb-2020 |
ad <ad@NetBSD.org> |
Add rw_lock_op(): return either RW_READER or RW_WRITER for a lock that is known to be held by the caller. Panic if the lock is not held.
|
| #
85e6de74 |
| 21-Jan-2020 |
ad <ad@NetBSD.org> |
Add a rw_owner_running() for the pagedaemon.
|
| #
40f85a18 |
| 21-Jan-2020 |
thorpej <thorpej@NetBSD.org> |
Update a comment.
|
| #
959bf297 |
| 19-Jan-2020 |
ad <ad@NetBSD.org> |
Tidy rwlocks a bit, no functional change intended. Mainly:
- rw_downgrade(): do it in a for () loop like all the others. - Explicitly carry around RW_NODEBUG - don't be lazy. - Remove pointless mac
Tidy rwlocks a bit, no functional change intended. Mainly:
- rw_downgrade(): do it in a for () loop like all the others. - Explicitly carry around RW_NODEBUG - don't be lazy. - Remove pointless macros. - Don't make assertions conditional on LOCKDEBUG, there's no reason. - Make space for a new flag bit (not added yet).
show more ...
|
| #
8ce608c9 |
| 01-Jan-2020 |
ad <ad@NetBSD.org> |
Add some new functions for lock objects:
mutex_obj_refcnt(), mutex_obj_tryalloc() rw_obj_refcnt(), rw_obj_tryalloc()
|
| #
915952b1 |
| 29-Nov-2019 |
riastradh <riastradh@NetBSD.org> |
Largely eliminate the MD rwlock.h header file.
This was full of definitions that have been obsolete for over a decade. The file still remains for __HAVE_RW_STUBS but that's all. Used only internall
Largely eliminate the MD rwlock.h header file.
This was full of definitions that have been obsolete for over a decade. The file still remains for __HAVE_RW_STUBS but that's all. Used only internally in kern_rwlock.c now, not by <sys/rwlock.h>.
show more ...
|
| #
c53ddcff |
| 08-Feb-2010 |
skrll <skrll@NetBSD.org> |
Re-apply:
Invert the sense of the bit to mark if LOCKDEBUG is enabled to disabled.
This will help my fellow developers spot "use before initialised" problems that hppa picks up very well.
but
Re-apply:
Invert the sense of the bit to mark if LOCKDEBUG is enabled to disabled.
This will help my fellow developers spot "use before initialised" problems that hppa picks up very well.
but fix the !LOCKDEBUG case by defining the "no debug" bits to zero so they have no effect on lock stubs.
show more ...
|
| #
5ba42320 |
| 06-Feb-2010 |
cube <cube@NetBSD.org> |
Revert commit from Fri Feb 5 06:43:17 UTC 2010 by skrll:
Invert the sense of the bit to mark if LOCKDEBUG is enabled to disabled.
This will help my fellow developers spot "use before i
Revert commit from Fri Feb 5 06:43:17 UTC 2010 by skrll:
Invert the sense of the bit to mark if LOCKDEBUG is enabled to disabled.
This will help my fellow developers spot "use before initialised" problems that hppa picks up very well.
It has to be done differently, because the semantics of mtx_owner in the non- LOCKDEBUG case can vary significantly between archs, and thus it is not possible to simply flip a bit to 1.
Ok core@, as at least i386 is unbootable right now.
show more ...
|
| #
60b795dc |
| 05-Feb-2010 |
skrll <skrll@NetBSD.org> |
Invert the sense of the bit to mark if LOCKDEBUG is enabled to disabled.
This will help my fellow developers spot "use before initialised" problems that hppa picks up very well.
|
| #
a8bd3c39 |
| 19-Apr-2009 |
ad <ad@NetBSD.org> |
Add rw_obj_*() functions to mirror the existing mutex functions. Proposed on tech-kern quite some time ago.
|
| #
ce099b40 |
| 28-Apr-2008 |
martin <martin@NetBSD.org> |
Remove clause 3 and 4 from TNF licenses
|
| #
4598f150 |
| 11-Apr-2008 |
ad <ad@NetBSD.org> |
rwlock changes, discussed on tech-kern:
- Use atomic ops directly, since rwlocks work the same way on all platforms. - Try to make it a bit more cache efficient, and use branch hints. - Fix a bug in
rwlock changes, discussed on tech-kern:
- Use atomic ops directly, since rwlocks work the same way on all platforms. - Try to make it a bit more cache efficient, and use branch hints. - Fix a bug in rw_downgrade() where the turnstile lock was not released. - Remove a couple of redundant assertions. - Use atomic_swap instead of atomic_cas where it's safe to do so. - After acquiring the turnstile lock in rw_vector_enter, check if the owner is running again and spin if so. - Introduce and use rw_onproc() instead of abusing mutex_onproc(). - Change the handoff/release algorithm to reduce the window when a rwlock can held, but the owner not on a CPU.
show more ...
|
| #
501eb05c |
| 25-Jan-2008 |
ad <ad@NetBSD.org> |
- Prevent LOCKDEBUG from complaining if we do rw_tryenter() on a lock that we already own. - Add an assembly stub for rw_tryenter().
|
| #
38d5e341 |
| 21-Nov-2007 |
yamt <yamt@NetBSD.org> |
make kmutex_t and krwlock_t smaller by killing lock id. ok'ed by Andrew Doran.
|
| #
b07ec3fc |
| 09-Feb-2007 |
ad <ad@NetBSD.org> |
Merge newlock2 to head.
|