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)
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>

No differences found