OpenBSD cvs log

created 2024-10-26T16:08:08Z
begin 2024-10-20T00:00:00Z
end 2024-10-21T00:00:00Z
path src/sys
commits 2

date 2024-10-20T06:54:11Z
author jsg
files src/sys/arch/m88k/m88k/trap.c log diff annotate
message add comma to fix offsets of trap type strings
ok miod@

date 2024-10-20T11:28:17Z
author dlg
files src/sys/uvm/uvm_map.c log diff annotate
src/sys/uvm/uvm_map.h log diff annotate
message try to simplify the locking code around busy maps.

vm_maps have a "feature" where they can mark that they're being
operated on by a specific proc, and then release the rwlock protecting
their state. to relock, you have to be the same proc that marked
it busy.

this diff tries to simplify it a bit. it basically has threads check
the busy field up front and rechecks the busy field inside the
rwlock. if you can sleep, it will sleep up front for the busy field
to become clear, rather than sleep on either the busy field or the
rwlock. some code paths clear the busy field without holding the
rwlock, so it doesn't make sense to me to be waiting for the busy
field but sleeping somewhere else.

ok claudio@ mpi@