Enter epoch earlier. This is needed because we are exiting it also
in error cases. MFC after: 1 week
This commit is contained in:
parent
18e588033f
commit
5c244a3a28
@ -1727,6 +1727,7 @@ sctp_timeout_handler(void *t)
|
|||||||
stcb = (struct sctp_tcb *)tmr->tcb;
|
stcb = (struct sctp_tcb *)tmr->tcb;
|
||||||
net = (struct sctp_nets *)tmr->net;
|
net = (struct sctp_nets *)tmr->net;
|
||||||
CURVNET_SET((struct vnet *)tmr->vnet);
|
CURVNET_SET((struct vnet *)tmr->vnet);
|
||||||
|
NET_EPOCH_ENTER(et);
|
||||||
did_output = 1;
|
did_output = 1;
|
||||||
released_asoc_reference = false;
|
released_asoc_reference = false;
|
||||||
|
|
||||||
@ -1786,7 +1787,6 @@ sctp_timeout_handler(void *t)
|
|||||||
|
|
||||||
/* Record in stopped_from which timeout occurred. */
|
/* Record in stopped_from which timeout occurred. */
|
||||||
tmr->stopped_from = type;
|
tmr->stopped_from = type;
|
||||||
NET_EPOCH_ENTER(et);
|
|
||||||
/* mark as being serviced now */
|
/* mark as being serviced now */
|
||||||
if (SCTP_OS_TIMER_PENDING(&tmr->timer)) {
|
if (SCTP_OS_TIMER_PENDING(&tmr->timer)) {
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user