diff options
author | Eric Dumazet <edumazet@google.com> | 2024-05-02 17:39:26 +0000 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-05-03 15:14:01 -0700 |
commit | c1742dcb6bda5fd535fbaa2145f0a180bc329aa6 (patch) | |
tree | 2552435caf76a6cf8dd78f0d734c953b517ace36 /include/linux | |
parent | 3e51f2cbbc5dc854f89ca37d95d295bfcabb5b43 (diff) | |
download | linux-stable-c1742dcb6bda5fd535fbaa2145f0a180bc329aa6.tar.gz linux-stable-c1742dcb6bda5fd535fbaa2145f0a180bc329aa6.tar.bz2 linux-stable-c1742dcb6bda5fd535fbaa2145f0a180bc329aa6.zip |
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>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/netdevice.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 41853424b41d..2814a15eed73 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -2370,8 +2370,8 @@ struct net_device { struct sfp_bus *sfp_bus; struct lock_class_key *qdisc_tx_busylock; bool proto_down; + bool threaded; unsigned wol_enabled:1; - unsigned threaded:1; struct list_head net_notifier_list; |