HomeFreeBSD

Have TD_LOCKS_DEC() assert that td_locks is positive.

Description

Have TD_LOCKS_DEC() assert that td_locks is positive.

This makes it easier to catch lock accounting bugs, since the problem
is otherwise only detected upon a return to user mode (or never, for
kernel threads).

Reviewed by: cem
MFC after: 1 week
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D14896

Details

Provenance
markjAuthored on
Reviewer
cem
Differential Revision
D14896: Assert td_locks > 0 in TD_LOCKS_DEC()
Parents
rS331737: GC never enabled support for SIOCGADDRROM and SIOCGCHIPID.
Branches
Unknown
Tags
Unknown