mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-13 10:02:38 +00: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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=302155
@ -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 New Issue
Block a user