aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2014-01-06 12:36:12 -0500
committerDavid S. Miller <davem@davemloft.net>2014-01-06 16:34:34 -0500
commit996b175e39ed42ec2aa0c63b4a03cc500aa6269f (patch)
treeef8eb180ad164a68c56189632619e79b2bb7b62f /net/ipv4/tcp.c
parent0b23810d8c37a707abb076394c4bca76362cf06d (diff)
tcp: out_of_order_queue do not use its lock
TCP out_of_order_queue lock is not used, as queue manipulation happens with socket lock held and we therefore use the lockless skb queue routines (as __skb_queue_head()) We can use __skb_queue_head_init() instead of skb_queue_head_init() to make this more consistent. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp.c')
-rw-r--r--net/ipv4/tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c
index d099f9a055c6..e2a40515e665 100644
--- a/net/ipv4/tcp.c
+++ b/net/ipv4/tcp.c
@@ -381,7 +381,7 @@ void tcp_init_sock(struct sock *sk)
381 struct inet_connection_sock *icsk = inet_csk(sk); 381 struct inet_connection_sock *icsk = inet_csk(sk);
382 struct tcp_sock *tp = tcp_sk(sk); 382 struct tcp_sock *tp = tcp_sk(sk);
383 383
384 skb_queue_head_init(&tp->out_of_order_queue); 384 __skb_queue_head_init(&tp->out_of_order_queue);
385 tcp_init_xmit_timers(sk); 385 tcp_init_xmit_timers(sk);
386 tcp_prequeue_init(tp); 386 tcp_prequeue_init(tp);
387 INIT_LIST_HEAD(&tp->tsq_node); 387 INIT_LIST_HEAD(&tp->tsq_node);