net: convert syn_wait_lock to a spinlock
authorEric Dumazet <edumazet@google.com>
Sun, 22 Mar 2015 17:22:21 +0000 (10:22 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Mar 2015 20:52:26 +0000 (16:52 -0400)
commitb282705336e03fc7b9377a278939594870a40f96
treefbb9b0bf127fb3910e65b6ff6566fc12396385e4
parent8b929ab12fb2ab960adb3c3ec8d107fef5ff3243
net: convert syn_wait_lock to a spinlock

This is a low hanging fruit, as we'll get rid of syn_wait_lock eventually.

We hold syn_wait_lock for such small sections, that it makes no sense to use
a read/write lock. A spin lock is simply faster.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/request_sock.h
net/core/request_sock.c
net/ipv4/inet_connection_sock.c
net/ipv4/inet_diag.c
net/ipv4/tcp_ipv4.c
net/ipv6/inet6_connection_sock.c