HomeFreeBSD

Use atomic_interrupt_fence() instead of bare __compiler_membar()

Description

Use atomic_interrupt_fence() instead of bare __compiler_membar()

for the which which definitely use membar to sync with interrupt handlers.

libc and rtld uses of __compiler_membar() seems to want compiler barriers
proper.

The barrier in sched_unpin_lite() after td_pinned decrement seems to be not
needed and removed, instead of convertion.

Reviewed by: markj
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D28956

Details

Provenance
kibAuthored on Feb 26 2021, 11:54 PM
Reviewer
markj
Differential Revision
D28956: Use atomic_interrupt_fence() instead of bare __compiler_membar()
Parents
rG1d9ba697f99a: libifconfig: Set error in ifconfig_get_groups
Branches
Unknown
Tags
Unknown