]> git.baikalelectronics.ru Git - kernel.git/commit
net: napi: use READ_ONCE()/WRITE_ONCE()
authorEric Dumazet <edumazet@google.com>
Wed, 22 Apr 2020 16:13:28 +0000 (09:13 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Apr 2020 19:43:20 +0000 (12:43 -0700)
commit0d61c246cf586a9fb47b8052c001130b17bd2b8c
treeb927ae6c6296d1ca3037554c98e6b1d2165455a3
parentcef92f16af5933e343a68fff6292353e88b8ae22
net: napi: use READ_ONCE()/WRITE_ONCE()

gro_flush_timeout and napi_defer_hard_irqs can be read
from napi_complete_done() while other cpus write the value,
whithout explicit synchronization.

Use READ_ONCE()/WRITE_ONCE() to annotate the races.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c
net/core/net-sysfs.c