aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/skb_load_bytes.c
diff options
context:
space:
mode:
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2023-09-14 16:35:57 +0100
committerDavid S. Miller <davem@davemloft.net>2023-09-17 14:31:23 +0100
commit8635c0663e6bd8b4a11c0cf33d3b067db67ea819 (patch)
treeea1f6f0562a837ec9223d4397d03f3a916548d08 /tools/testing/selftests/bpf/prog_tests/skb_load_bytes.c
parentc398ef41b6d48bd204260b136b4517e0f130892a (diff)
net: phy: split locked and unlocked section of phy_state_machine()
Split out the locked and unlocked sections of phy_state_machine() into two separate functions which can be called inside the phydev lock and outside the phydev lock as appropriate, thus allowing us to combine the locked regions in the caller of phy_state_machine() with the locked region inside phy_state_machine(). This avoids unnecessarily dropping the phydev lock which may allow races to occur. Tested-by: Jijie Shao <shaojijie@huawei.com> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/skb_load_bytes.c')
0 files changed, 0 insertions, 0 deletions