From: Eric Dumazet <[EMAIL PROTECTED]> Date: Mon, 16 Oct 2006 11:00:22 +0200
> While browsing include/net/request_sock.h I found this suspicious locking > protecting the SYN table hash table. I think this patch is necessary. > > Signed-off-by: Eric Dumazet <[EMAIL PROTECTED]> People get tripped up by this one all the time. We hold a higher level lock which protects other inserts from happening, namely the listening socket lock, it works here like the RTNL semaphore does. We only need to protect the actual change of the hash head, as lookups can occur asynchronously and we want linkage seen by lookups to be consistent. Alexey likes to do this locking trick a lot. Feel free to add a comment. :-) - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html