HomeFreeBSD

Add witness_is_owned(9)

Description

Add witness_is_owned(9)

which returns an indicator if the current thread owns the specified
lock.

Reviewed by: jah, markj
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D39477

Details

Provenance
kibAuthored on Apr 10 2023, 3:54 PM
Reviewer
jah
Differential Revision
D39477: ASSERT_VOP_LOCKED(): restore diagnostic for the witness use case
Parents
rGafa8f8971b86: vn_start_write(): consistently set *mpp to NULL on error or after failed sleep
Branches
Unknown
Tags
Unknown