]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2ffc112f2437f74799b40c5d762e1e1c262230d2
treefbb9b0bf127fb3910e65b6ff6566fc12396385e4
parentc976f2e8686a6adaff973be1e14acf5f1d4b2a62
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