Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 92d6f176 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

tcp/dccp: add a reschedule point in inet_csk_listen_stop()



If a listener with thousands of children in accept queue
is dismantled, it can take a while to close all of them.

Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ef547f2a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -809,6 +809,7 @@ void inet_csk_listen_stop(struct sock *sk)
		sock_put(child);

		reqsk_put(req);
		cond_resched();
	}
	if (queue->fastopenq.rskq_rst_head) {
		/* Free all the reqs queued in rskq_rst_head. */