summaryrefslogtreecommitdiffstats
path: root/net/dsa
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2017-01-21 00:31:52 +0100
committerDavid S. Miller <davem@davemloft.net>2017-01-23 21:37:10 +0100
commiteab127717a6af54401ba534790c793ec143cd1fc (patch)
tree844269bbc845f289d134965033ff37e0243c0811 /net/dsa
parentnet: mpls: Fix multipath selection for LSR use case (diff)
downloadlinux-eab127717a6af54401ba534790c793ec143cd1fc.tar.xz
linux-eab127717a6af54401ba534790c793ec143cd1fc.zip
net: phy: Avoid deadlock during phy_error()
phy_error() is called in the PHY state machine workqueue context, and calls phy_trigger_machine() which does a cancel_delayed_work_sync() of the workqueue we execute from, causing a deadlock situation. Augment phy_trigger_machine() machine with a sync boolean indicating whether we should use cancel_*_sync() or just cancel_*_work(). Fixes: 3c293f4e08b5 ("net: phy: Trigger state machine on state change and not polling.") Reported-by: Russell King <rmk+kernel@armlinux.org.uk> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa')
0 files changed, 0 insertions, 0 deletions