HomeFreeBSD

When draining a callout, don't clear CALLOUT_ACTIVE while it is running.

Description

When draining a callout, don't clear CALLOUT_ACTIVE while it is running.

The callout may reschedule itself and execute again before callout_drain()
returns, but we should not clear CALLOUT_ACTIVE until the callout is
stopped.

Tested by: pho
MFC after: 2 weeks
Sponsored by: Dell EMC Isilon

Details

Provenance
markjAuthored on
Parents
rS315288: Change casting to a uintptr_t to be compatible with non-x86 architectures.
Branches
Unknown
Tags
Unknown