HomeFreeBSD

rw: fix runlock_hard when new readers show up

Description

rw: fix runlock_hard when new readers show up

When waiters/writer spinner flags are set no new readers can show up unless
they already have a different rw rock read locked. The change in r326195 failed
to take that into account - in presence of new readers it would spin until
they all drain, which would be lead to trouble if e.g. they go off cpu and
can get scheduled because of this thread.

Reported by: pho

Details

Provenance
mjgAuthored on
Parents
rS326236: Synchronize TLB1 mappings when created
Branches
Unknown
Tags
Unknown