HomeFreeBSD

Correct a bug that prevented deadlkres from (almost) ever firing.
rS252342Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

Correct a bug that prevented deadlkres from (almost) ever firing.

deadlkres was using a reversed test to check whether ticks had rolled over.
This meant that deadlkres could only fire after ticks had rolled over.
This test was actually unnecessary as deadlkres only ever took the
difference of ticks values which is safe even in the presence of ticks
rollover. Remove the tests entirely. Now deadlkres will properly fire
after a lock has been held after the timeout period.

MFC after: 1 month

Details

Provenance
rstoneAuthored on
Parents
rS252341: Correct comment typos.
Branches
Unknown
Tags
Unknown

Event Timeline