]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: use ACCESS_ONCE() in tcp_update_pacing_rate()
authorEric Dumazet <edumazet@google.com>
Thu, 10 Oct 2013 00:14:52 +0000 (17:14 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Oct 2013 04:08:07 +0000 (00:08 -0400)
commit11eb13eea4f45a228f43dcdde295004c1fb2c0ed
treecf6398384e262e3460109a173daea105f88413ad
parent8f360b846a392ae4efd22cbc6b928c2a1982ce7e
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 <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_input.c