]> git.dujemihanovic.xyz Git - linux.git/commit
net: no longer acquire RTNL in threaded_show()
authorEric Dumazet <edumazet@google.com>
Thu, 2 May 2024 17:39:26 +0000 (17:39 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 3 May 2024 22:14:01 +0000 (15:14 -0700)
commitc1742dcb6bda5fd535fbaa2145f0a180bc329aa6
tree2552435caf76a6cf8dd78f0d734c953b517ace36
parent3e51f2cbbc5dc854f89ca37d95d295bfcabb5b43
net: no longer acquire RTNL in threaded_show()

dev->threaded can be read locklessly, if we add
corresponding READ_ONCE()/WRITE_ONCE() annotations.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20240502173926.2010646-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/netdevice.h
net/core/dev.c
net/core/net-sysfs.c