summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2024-05-02 20:39:26 +0300
committerJakub Kicinski <kuba@kernel.org>2024-05-04 01:14:01 +0300
commitc1742dcb6bda5fd535fbaa2145f0a180bc329aa6 (patch)
tree2552435caf76a6cf8dd78f0d734c953b517ace36 /include
parent3e51f2cbbc5dc854f89ca37d95d295bfcabb5b43 (diff)
downloadlinux-c1742dcb6bda5fd535fbaa2145f0a180bc329aa6.tar.xz
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')
-rw-r--r--include/linux/netdevice.h2
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;