From: Pravin B Shelar Date: Tue, 24 Sep 2013 17:25:40 +0000 (-0700) Subject: vxlan: Use RCU apis to access sk_user_data. X-Git-Tag: v3.12-rc4~30^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=559835ea7292e2f09304d81eda16f4209433245e;p=pandora-kernel.git vxlan: Use RCU apis to access sk_user_data. Use of RCU api makes vxlan code easier to understand. It also fixes bug due to missing ACCESS_ONCE() on sk_user_data dereference. In rare case without ACCESS_ONCE() compiler might omit vs on sk_user_data dereference. Compiler can use vs as alias for sk->sk_user_data, resulting in multiple sk_user_data dereference in rcu read context which could change. CC: Jesse Gross Signed-off-by: Pravin B Shelar Signed-off-by: David S. Miller --- Reading git-diff-tree failed