linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 net-next] inet: remove redundant backlog setting in listen(2)
@ 2018-10-09 12:05 Yafang Shao
  2018-10-09 12:05 ` [PATCH net-next] tcp: forbid direct reclaim if MSG_DONTWAIT is set in send path Yafang Shao
  2018-10-09 14:00 ` [PATCH v3 net-next] inet: remove redundant backlog setting in listen(2) Eric Dumazet
  0 siblings, 2 replies; 9+ messages in thread
From: Yafang Shao @ 2018-10-09 12:05 UTC (permalink / raw)
  To: edumazet, davem; +Cc: netdev, linux-kernel, Yafang Shao

The sk_max_ack_backlog will be set in the caller inet_listen() and
dccp_listen_start(), so it is redundant to set it in
inet_csk_listen_start().
Just remove this setting.

Signed-off-by: Yafang Shao <laoar.shao@gmail.com>
---
 net/ipv4/inet_connection_sock.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/net/ipv4/inet_connection_sock.c b/net/ipv4/inet_connection_sock.c
index dfd5009..cdd5c95 100644
--- a/net/ipv4/inet_connection_sock.c
+++ b/net/ipv4/inet_connection_sock.c
@@ -871,7 +871,6 @@ int inet_csk_listen_start(struct sock *sk, int backlog)
 
 	reqsk_queue_alloc(&icsk->icsk_accept_queue);
 
-	sk->sk_max_ack_backlog = backlog;
 	sk->sk_ack_backlog = 0;
 	inet_csk_delack_init(sk);
 
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-10-10  1:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-09 12:05 [PATCH v3 net-next] inet: remove redundant backlog setting in listen(2) Yafang Shao
2018-10-09 12:05 ` [PATCH net-next] tcp: forbid direct reclaim if MSG_DONTWAIT is set in send path Yafang Shao
2018-10-09 14:12   ` Eric Dumazet
2018-10-09 14:52     ` Yafang Shao
2018-10-09 14:58       ` Eric Dumazet
2018-10-09 15:38         ` Eric Dumazet
2018-10-10  1:30           ` Yafang Shao
2018-10-10  1:44             ` Eric Dumazet
2018-10-09 14:00 ` [PATCH v3 net-next] inet: remove redundant backlog setting in listen(2) Eric Dumazet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).