commit | 5caea4ea7088e80ac5410d04660346094608b909 | [log] [tgz] |
---|---|---|
author | Eric Dumazet <dada1@cosmosbay.com> | Thu Nov 20 00:40:07 2008 -0800 |
committer | David S. Miller <davem@davemloft.net> | Thu Nov 20 00:40:07 2008 -0800 |
tree | fad95133683c002d24ff5de7fb756dad806b41ed | |
parent | d8b83c57a7e497cba9b5cb156e63176323035785 [diff] |
net: listening_hash get a spinlock per bucket This patch prepares RCU migration of listening_hash table for TCP/DCCP protocols. listening_hash table being small (32 slots per protocol), we add a spinlock for each slot, instead of a single rwlock for whole table. This should reduce hold time of readers, and writers concurrency. Signed-off-by: Eric Dumazet <dada1@cosmosbay.com> Signed-off-by: David S. Miller <davem@davemloft.net>