From: Eric Dumazet Date: Thu, 10 Oct 2013 00:14:52 +0000 (-0700) Subject: tcp: use ACCESS_ONCE() in tcp_update_pacing_rate() X-Git-Tag: v3.13-rc1~105^2~196 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba537427d77cf274592f31ce94f4b4cadfad88b4;p=pandora-kernel.git tcp: use ACCESS_ONCE() in tcp_update_pacing_rate() sk_pacing_rate is read by sch_fq packet scheduler at any time, with no synchronization, so make sure we update it in a sensible way. ACCESS_ONCE() is how we instruct compiler to not do stupid things, like using the memory location as a temporary variable. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed