]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
gmirror: Pre-allocate the timeout event structure
authorMark Johnston <markj@FreeBSD.org>
Thu, 11 Mar 2021 20:43:04 +0000 (15:43 -0500)
committerMark Johnston <markj@FreeBSD.org>
Thu, 18 Mar 2021 01:24:20 +0000 (21:24 -0400)
commit39a1b7bd93270a4e6c152678498a05a4fec1b486
treef540868f86436c34b8232afb3a59dc8acb048e00
parent3b71af08bb84a0b8f0b1f4066b399cc48bddbfee
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
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D29223

(cherry picked from commit 2f1cfb7f63ca744e7a143896347bdc8606c291d6)
sys/geom/mirror/g_mirror.c
sys/geom/mirror/g_mirror.h