]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add explicit SI_SUB_EPOCH
authorcem <cem@FreeBSD.org>
Fri, 22 Nov 2019 23:23:40 +0000 (23:23 +0000)
committercem <cem@FreeBSD.org>
Fri, 22 Nov 2019 23:23:40 +0000 (23:23 +0000)
commit35d496b56a7f7b01b7967860ba622e1fed8fc464
tree916e6db16a17e1940a3a6987453a18a8a7255964
parent880ccf502c336b01f1cab418901e2f54ccb3e065
Add explicit SI_SUB_EPOCH

Add explicit SI_SUB_EPOCH, after SI_SUB_TASKQ and before SI_SUB_SMP
(EARLY_AP_STARTUP).  Rename existing "SI_SUB_TASKQ + 1" to SI_SUB_EPOCH.

epoch(9) consumers cannot epoch_alloc() before SI_SUB_EPOCH:SI_ORDER_SECOND,
but likely should allocate before SI_SUB_SMP.  Prior to this change,
consumers (well, epoch itself, and net/if.c) just open-coded the
SI_SUB_TASKQ + 1 order to match epoch.c, but this was fragile.

Reviewed by: mmacy
Differential Revision: https://reviews.freebsd.org/D22503
sys/kern/subr_epoch.c
sys/net/if.c
sys/sys/kernel.h