HomeFreeBSD

gmirror: Pre-allocate the timeout event structure

Description

gmirror: Pre-allocate the timeout event structure

We can't call malloc(M_WAITOK) in a callout handler.

Reviewed by: imp
Reported by: pho
Tested by: pho
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D29223

Details

Provenance
markjAuthored on Mar 11 2021, 8:43 PM
Reviewer
imp
Differential Revision
D29223: g_mirror: Pre-allocate timeout event structure
Parents
rGd28cbb7944e5: development(7): update to reflect Git transition
Branches
Unknown
Tags
Unknown