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>
Showing
- include/net/inet_hashtables.h 7 additions, 7 deletionsinclude/net/inet_hashtables.h
- net/ipv4/inet_hashtables.c 10 additions, 11 deletionsnet/ipv4/inet_hashtables.c
- net/ipv4/inet_timewait_sock.c 11 additions, 11 deletionsnet/ipv4/inet_timewait_sock.c
- net/ipv4/tcp_ipv4.c 6 additions, 6 deletionsnet/ipv4/tcp_ipv4.c
- net/ipv6/inet6_hashtables.c 7 additions, 8 deletionsnet/ipv6/inet6_hashtables.c
Loading
Please register or sign in to comment