Author: melifaro Date: Tue Aug 11 07:23:07 2020 New Revision: 364101 URL: https://svnweb.freebsd.org/changeset/base/364101
Log: Do not enter epoch in add_route(), as it is already called in epoch. Reviewed by: glebius Modified: head/sys/net/route/route_ctl.c Modified: head/sys/net/route/route_ctl.c ============================================================================== --- head/sys/net/route/route_ctl.c Tue Aug 11 07:21:32 2020 (r364100) +++ head/sys/net/route/route_ctl.c Tue Aug 11 07:23:07 2020 (r364101) @@ -144,7 +144,6 @@ add_route(struct rib_head *rnh, struct rt_addrinfo *in struct radix_node *rn; struct ifaddr *ifa; int error, flags; - struct epoch_tracker et; dst = info->rti_info[RTAX_DST]; gateway = info->rti_info[RTAX_GATEWAY]; @@ -168,9 +167,7 @@ add_route(struct rib_head *rnh, struct rt_addrinfo *in ifa_ref(info->rti_ifa); } - NET_EPOCH_ENTER(et); error = nhop_create_from_info(rnh, info, &nh); - NET_EPOCH_EXIT(et); if (error != 0) { ifa_free(info->rti_ifa); return (error); _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"