HomeFreeBSD

pbuf_ctor(): Stop using LK_NOWAIT, use LK_NOWITNESS

Description

pbuf_ctor(): Stop using LK_NOWAIT, use LK_NOWITNESS

The LK_NOWAIT was added to suppress a witness warning, but LK_NOWITNESS
is more what we mean. This makes pbuf_ctor() more consistent with
buf_alloc(), although, unlike buf_alloc(), for pbuf there should not be
any danger of a wild locker relying on the type stability of the buf to
attempt a lock. That is, this is essentially cosmetic.

Relevant history:

Reviewed by: rew, kib
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D45360

Details

Provenance
rlibbyAuthored on May 26 2024, 5:20 PM
Reviewer
rew
Differential Revision
D45360: pbuf_ctor(): Stop using LK_NOWAIT, use LK_NOWITNESS
Parents
rG6bd3f23a2a82: tmpfs_node_init: use MTX_NEW on lock from uninitialized memory
Branches
Unknown
Tags
Unknown