]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net-sysfs: convert dev->operstate reads to lockless ones
authorEric Dumazet <edumazet@google.com>
Tue, 13 Feb 2024 06:32:39 +0000 (06:32 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 May 2024 10:14:54 +0000 (12:14 +0200)
commitec87ec591e797ef5577359415005f7e59c79bf34
treeba6b485a79da20fc8e60b4c4ef552e650a77d60c
parent1876881c9a49613b5249fb400cbf53412d90cb09
net-sysfs: convert dev->operstate reads to lockless ones

[ Upstream commit 004d138364fd10dd5ff8ceb54cfdc2d792a7b338 ]

operstate_show() can omit dev_base_lock acquisition only
to read dev->operstate.

Annotate accesses to dev->operstate.

Writers still acquire dev_base_lock for mutual exclusion.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Stable-dep-of: 4893b8b3ef8d ("hsr: Simplify code for announcing HSR nodes timer setup")
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/bridge/br_netlink.c
net/core/link_watch.c
net/core/net-sysfs.c
net/core/rtnetlink.c
net/hsr/hsr_device.c
net/ipv6/addrconf.c