mirror of
https://github.com/opnsense/src.git
synced 2026-04-20 21:59:20 -04:00
Try to avoid a 2nd conditional by re-writing the loop, pause, and
escape clause another time. Submitted by: jhb Approved by: re (gjb) MFC after: 12 days
This commit is contained in:
parent
678243ffda
commit
42644eb88e
1 changed files with 5 additions and 4 deletions
|
|
@ -738,13 +738,14 @@ tcp_destroy(void *unused __unused)
|
|||
* up, which means, we should be past the tcp_discardcb() calls.
|
||||
* Sleep to let all tcpcb timers really disappear and cleanup.
|
||||
*/
|
||||
do {
|
||||
for (;;) {
|
||||
INP_LIST_RLOCK(&V_tcbinfo);
|
||||
n = V_tcbinfo.ipi_count;
|
||||
INP_LIST_RUNLOCK(&V_tcbinfo);
|
||||
if (n != 0)
|
||||
pause("tcpdes", hz / 10);
|
||||
} while (n != 0);
|
||||
if (n == 0)
|
||||
break;
|
||||
pause("tcpdes", hz / 10);
|
||||
}
|
||||
tcp_hc_destroy();
|
||||
syncache_destroy();
|
||||
tcp_tw_destroy();
|
||||
|
|
|
|||
Loading…
Reference in a new issue