Enter epoch earlier. This is needed because we are exiting it also

in error cases.

MFC after:	1 week
This commit is contained in:
Michael Tuexen 2020-08-15 11:22:07 +00:00
parent 84fa0ef97d
commit 04996cb74b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=364247

View File

@ -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)) {
/*