From: Eric Dumazet Date: Tue, 31 Jan 2012 18:45:40 +0000 (+0000) Subject: tcp: md5: protects md5sig_info with RCU X-Git-Tag: v3.4-rc1~177^2~434 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8afca032998850ec63e83d555cdcf0eb5680cd6;p=pandora-kernel.git tcp: md5: protects md5sig_info with RCU This patch makes sure we use appropriate memory barriers before publishing tp->md5sig_info, allowing tcp_md5_do_lookup() being used from tcp_v4_send_reset() without holding socket lock (upcoming patch from Shawn Lu) Note we also need to respect rcu grace period before its freeing, since we can free socket without this grace period thanks to SLAB_DESTROY_BY_RCU Signed-off-by: Eric Dumazet Cc: Shawn Lu Signed-off-by: David S. Miller --- Reading git-diff-tree failed