]> git.baikalelectronics.ru Git - kernel.git/commit
net: Fix data-races around netdev_max_backlog.
authorKuniyuki Iwashima <kuniyu@amazon.com>
Tue, 23 Aug 2022 17:46:46 +0000 (10:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Aug 2022 12:46:57 +0000 (13:46 +0100)
commit92583d51f8435c8961dee42e80dd49e6a3120d67
tree0c29065e2077fc424d1d16c459d887dc81c10b5c
parent5b5257140da56d42f5b8fd5676a8923372c1e7d4
net: Fix data-races around netdev_max_backlog.

While reading netdev_max_backlog, it can be changed concurrently.
Thus, we need to add READ_ONCE() to its readers.

While at it, we remove the unnecessary spaces in the doc.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/admin-guide/sysctl/net.rst
net/core/dev.c
net/core/gro_cells.c
net/xfrm/espintcp.c
net/xfrm/xfrm_input.c