HomeFreeBSD

Implement API for draining EPOCH(9) callbacks.

Description

Implement API for draining EPOCH(9) callbacks.

The epoch_drain_callbacks() function is used to drain all pending
callbacks which have been invoked by prior epoch_call() function calls
on the same epoch. This function is useful when there are shared
memory structure(s) referred to by the epoch callback(s) which are not
refcounted and are rarely freed. The typical place for calling this
function is right before freeing or invalidating the shared
resource(s) used by the epoch callback(s). This function can sleep and
is not optimized for performance.

Differential Revision: https://reviews.freebsd.org/D20109
MFC after: 1 week
Sponsored by: Mellanox Technologies

Details

Committed
hselaskyJun 28 2019, 10:38 AM
Differential Revision
D20109: Need to wait for epoch callbacks to complete before detaching network interface
Parents
rS349505: Upgrade to Bzip2 version 1.0.7.
Branches
Unknown
Tags
Unknown