Commit ca4e781f authored by Eric Dumazet's avatar Eric Dumazet Committed by Greg Kroah-Hartman
Browse files

net-sysfs: convert dev->operstate reads to lockless ones



[ Upstream commit 004d1383 ]

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: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Stable-dep-of: 4893b8b3 ("hsr: Simplify code for announcing HSR nodes timer setup")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent b086d1e8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment