Author: tuexen
Date: Sat Aug 15 11:22:07 2020
New Revision: 364247
URL: https://svnweb.freebsd.org/changeset/base/364247

Log:
  Enter epoch earlier. This is needed because we are exiting it also
  in error cases.
  
  MFC after:    1 week

Modified:
  head/sys/netinet/sctputil.c

Modified: head/sys/netinet/sctputil.c
==============================================================================
--- head/sys/netinet/sctputil.c Sat Aug 15 07:22:48 2020        (r364246)
+++ head/sys/netinet/sctputil.c Sat Aug 15 11:22:07 2020        (r364247)
@@ -1727,6 +1727,7 @@ sctp_timeout_handler(void *t)
        stcb = (struct sctp_tcb *)tmr->tcb;
        net = (struct sctp_nets *)tmr->net;
        CURVNET_SET((struct vnet *)tmr->vnet);
+       NET_EPOCH_ENTER(et);
        did_output = 1;
        released_asoc_reference = false;
 
@@ -1786,7 +1787,6 @@ sctp_timeout_handler(void *t)
 
        /* Record in stopped_from which timeout occurred. */
        tmr->stopped_from = type;
-       NET_EPOCH_ENTER(et);
        /* mark as being serviced now */
        if (SCTP_OS_TIMER_PENDING(&tmr->timer)) {
                /*
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to