HomeFreeBSD

rms: several cleanups + debug read lockers handling

Description

rms: several cleanups + debug read lockers handling

This adds a dedicated counter updated with atomics when INVARIANTS
is used. As a side effect one can reliably determine the lock is held
for reading by at least one thread, but it's still not possible to
find out whether curthread has the lock in said mode.

This should be good enough in practice.

Problem spotted by avg.

Details

Provenance
mjgAuthored on
Parents
rS367452: imgact_binmisc: reorder members of struct imgact_binmisc_entry (NFC)
Branches
Unknown
Tags
Unknown