Date: Thu, 17 Oct 2019 17:02:51 +0000 (UTC) From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r353687 - head/sys/netinet Message-ID: <201910171702.x9HH2ppi007889@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: glebius Date: Thu Oct 17 17:02:50 2019 New Revision: 353687 URL: https://svnweb.freebsd.org/changeset/base/353687 Log: Quickly fix up r353683: enter the epoch before calling into netisr_dispatch(). Modified: head/sys/netinet/igmp.c Modified: head/sys/netinet/igmp.c ============================================================================== --- head/sys/netinet/igmp.c Thu Oct 17 16:38:44 2019 (r353686) +++ head/sys/netinet/igmp.c Thu Oct 17 17:02:50 2019 (r353687) @@ -2174,6 +2174,7 @@ igmp_slowtimo_vnet(void) static int igmp_v1v2_queue_report(struct in_multi *inm, const int type) { + struct epoch_tracker et; struct ifnet *ifp; struct igmp *igmp; struct ip *ip; @@ -2223,7 +2224,9 @@ igmp_v1v2_queue_report(struct in_multi *inm, const int m->m_flags |= M_IGMP_LOOP; CTR2(KTR_IGMPV3, "%s: netisr_dispatch(NETISR_IGMP, %p)", __func__, m); + NET_EPOCH_ENTER(et); netisr_dispatch(NETISR_IGMP, m); + NET_EPOCH_EXIT(et); return (0); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201910171702.x9HH2ppi007889>