Restore the comment removed in r348745.

LAGG_RLOCK() enters an epoch section, so the comment wasn't stale.

Reported by:	jhb
MFC with:	r348745
This commit is contained in:
Mark Johnston 2019-06-06 17:20:35 +00:00
parent f96e8a0bab
commit ce7fb386d8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=348751

View File

@ -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