diff options
author | Eric Dumazet <edumazet@google.com> | 2014-01-06 18:36:12 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-06 22:34:34 +0100 |
commit | 996b175e39ed42ec2aa0c63b4a03cc500aa6269f (patch) | |
tree | ef8eb180ad164a68c56189632619e79b2bb7b62f /net/ipv4/tcp_minisocks.c | |
parent | bonding: fix kstrtou8() return value verification in num_peer_notif (diff) | |
download | linux-996b175e39ed42ec2aa0c63b4a03cc500aa6269f.tar.xz linux-996b175e39ed42ec2aa0c63b4a03cc500aa6269f.zip |
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_minisocks.c')
-rw-r--r-- | net/ipv4/tcp_minisocks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_minisocks.c b/net/ipv4/tcp_minisocks.c index 97b684159861..3aa9e3247991 100644 --- a/net/ipv4/tcp_minisocks.c +++ b/net/ipv4/tcp_minisocks.c @@ -425,7 +425,7 @@ struct sock *tcp_create_openreq_child(struct sock *sk, struct request_sock *req, tcp_set_ca_state(newsk, TCP_CA_Open); tcp_init_xmit_timers(newsk); - skb_queue_head_init(&newtp->out_of_order_queue); + __skb_queue_head_init(&newtp->out_of_order_queue); newtp->write_seq = newtp->pushed_seq = treq->snt_isn + 1; newtp->rx_opt.saw_tstamp = 0; |