]> git.baikalelectronics.ru Git - kernel.git/commit
net: convert TCP/DCCP ehash rwlocks to spinlocks
authorEric Dumazet <dada1@cosmosbay.com>
Fri, 21 Nov 2008 04:39:09 +0000 (20:39 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Nov 2008 04:39:09 +0000 (20:39 -0800)
commitaf6a41a328a71fabad6177722d1baf0a6f7a361a
tree81bb20e4f569d3b44731498428277db9d77fa7a9
parentfeab3c7cab6c645277156cf235dc0dd27adc3395
net: convert TCP/DCCP ehash rwlocks to spinlocks

Now TCP & DCCP use RCU lookups, we can convert ehash rwlocks to spinlocks.

/proc/net/tcp and other seq_file 'readers' can safely be converted to 'writers'.

This should speedup writers, since spin_lock()/spin_unlock()
only use one atomic operation instead of two for write_lock()/write_unlock()

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inet_hashtables.h
net/ipv4/inet_hashtables.c
net/ipv4/inet_timewait_sock.c
net/ipv4/tcp_ipv4.c
net/ipv6/inet6_hashtables.c