From f97aee4109b92cf36e25fb30e3ed04b13b23390b Mon Sep 17 00:00:00 2001 From: markj Date: Thu, 6 Jun 2019 17:20:35 +0000 Subject: [PATCH] Restore the comment removed in r348745. LAGG_RLOCK() enters an epoch section, so the comment wasn't stale. Reported by: jhb MFC with: r348745 --- sys/net/if_lagg.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/net/if_lagg.c b/sys/net/if_lagg.c index 4f1b9635c236..3e1cb2043b08 100644 --- a/sys/net/if_lagg.c +++ b/sys/net/if_lagg.c @@ -1956,6 +1956,10 @@ lagg_link_active(struct lagg_softc *sc, struct lagg_port *lp) */ #ifdef INVARIANTS + /* + * This is called with either LAGG_RLOCK() held or + * LAGG_XLOCK(sc) held. + */ if (!in_epoch(net_epoch_preempt)) LAGG_XLOCK_ASSERT(sc); #endif