]> 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)
commit2b602e136d1960b41ac8d06e17dd30793666fa18
treefbb9b0bf127fb3910e65b6ff6566fc12396385e4
parent602c123ceda7c1dffaaea01e54a56bcd54a37950
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