Re: [TCP]: TCP_DEFER_ACCEPT causes leak sockets

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ingo Molnar
Date: Friday, June 13, 2008 - 2:10 pm

* Ingo Molnar <mingo@elte.hu> wrote:


hm, threw a second warning after 6 more hours of testing:

[  362.170209] WARNING: at net/sched/sch_generic.c:222 dev_watchdog+0xde/0xf0()

that appears to be more than just coincidence. I've applied the patch 
below - which brings me back to the well-tested revert from Ilpo.

This is the only change i've done for the overnight -tip testruns, so if 
the warning from sch_generic.c goes away it's this change that has an 
impact on that warning.

	Ingo

--------------------->
commit 3019ae9652fe44c099669e5dba116acad583cfcb
Author: Ingo Molnar <mingo@elte.hu>
Date:   Fri Jun 13 23:09:28 2008 +0200

    tcp: revert again
    
    Signed-off-by: Ingo Molnar <mingo@elte.hu>

diff --git a/net/ipv4/inet_connection_sock.c b/net/ipv4/inet_connection_sock.c
index 045e799..ec83448 100644
--- a/net/ipv4/inet_connection_sock.c
+++ b/net/ipv4/inet_connection_sock.c
@@ -466,9 +466,9 @@ void inet_csk_reqsk_queue_prune(struct sock *parent,
 		reqp=&lopt->syn_table[i];
 		while ((req = *reqp) != NULL) {
 			if (time_after_eq(now, req->expires)) {
-				if ((req->retrans < (inet_rsk(req)->acked ? max_retries : thresh)) &&
-				    (inet_rsk(req)->acked ||
-				     !req->rsk_ops->rtx_syn_ack(parent, req))) {
+				if ((req->retrans < thresh ||
+				     (inet_rsk(req)->acked && req->retrans < max_retries))
+				    && !req->rsk_ops->rtx_syn_ack(parent, req)) {
 					unsigned long timeo;
 
 					if (req->retrans++ == 0)
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [TCP]: TCP_DEFER_ACCEPT causes leak sockets, David Miller, (Wed Jun 11, 4:52 pm)
Re: [TCP]: TCP_DEFER_ACCEPT causes leak sockets, David Miller, (Thu Jun 12, 4:32 pm)
Re: [TCP]: TCP_DEFER_ACCEPT causes leak sockets, Ingo Molnar, (Thu Jun 12, 11:30 pm)
Re: [TCP]: TCP_DEFER_ACCEPT causes leak sockets, David Miller, (Fri Jun 13, 2:32 am)
Re: [TCP]: TCP_DEFER_ACCEPT causes leak sockets, Ingo Molnar, (Fri Jun 13, 4:09 am)
Re: [TCP]: TCP_DEFER_ACCEPT causes leak sockets, Ingo Molnar, (Fri Jun 13, 4:47 am)
Re: [TCP]: TCP_DEFER_ACCEPT causes leak sockets, Ingo Molnar, (Fri Jun 13, 2:10 pm)
Re: [TCP]: TCP_DEFER_ACCEPT causes leak sockets, David Miller, (Mon Jun 16, 4:59 pm)
Re: [TCP]: TCP_DEFER_ACCEPT causes leak sockets, Ingo Molnar, (Tue Jun 17, 12:26 am)
Re: [TCP]: TCP_DEFER_ACCEPT causes leak sockets, David Miller, (Tue Jun 17, 12:38 am)
Re: [TCP]: TCP_DEFER_ACCEPT causes leak sockets, Ingo Molnar, (Tue Jun 17, 1:09 am)
Re: [TCP]: TCP_DEFER_ACCEPT causes leak sockets, Ingo Molnar, (Tue Jun 17, 1:32 am)
Re: [TCP]: TCP_DEFER_ACCEPT causes leak sockets, Vitaliy Gusev, (Tue Jun 17, 1:43 am)
Re: [TCP]: TCP_DEFER_ACCEPT causes leak sockets, David Miller, (Tue Jun 17, 2:08 am)
Re: [TCP]: TCP_DEFER_ACCEPT causes leak sockets, Ingo Molnar, (Tue Jun 17, 2:27 am)
Re: [TCP]: TCP_DEFER_ACCEPT causes leak sockets, David Miller, (Tue Jun 17, 2:29 am)
Re: [TCP]: TCP_DEFER_ACCEPT causes leak sockets, Ingo Molnar, (Tue Jun 17, 2:39 am)
Re: [E1000-devel] [TCP]: TCP_DEFER_ACCEPT causes leak sockets, Denys Fedoryshchenko, (Wed Jun 18, 2:41 pm)
Re: [E1000-devel] [TCP]: TCP_DEFER_ACCEPT causes leak sockets, Denys Fedoryshchenko, (Wed Jun 18, 3:44 pm)
Re: [TCP]: TCP_DEFER_ACCEPT causes leak sockets, Jarek Poplawski, (Thu Jun 19, 12:06 am)