diff options
author | David S. Miller <davem@davemloft.net> | 2021-10-25 14:06:43 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-10-25 14:06:43 +0100 |
commit | b4ab21f90320969e5360719467153fc2bbc9435c (patch) | |
tree | e527db05dce25d753a20424239054648169bcca5 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 95a359c9553342d36d408d35331ff0bfce75272f (diff) | |
parent | af1a02aa23c37045e6adfcf074cf7dbac167a403 (diff) |
Merge branch 'ksettings-locking-fixes'
Andrew Lunn says:
====================
ksettings_{get|set} lock fixes
Walter Stoll <Walter.Stoll@duagon.com> reported a race condition
between "ethtool -s eth0 speed 100 duplex full autoneg off" and phylib
reading the current status from the PHY. Both ksetting_get and
ksetting_set fail the take the phydev mutex, and as a result, there is
a small window of time where the phydev members are not self
consistent.
Patch 1 fixes phy_ethtool_ksettings_get by adding the needed lock.
Patches 2 and 3 move code around and perform to refactoring, to allow
patch 4 to fix phy_ethtool_ksettings_set by added the lock.
Thanks go to Walter for the detailed origional report, suggested fix,
and testing of the proposed patches.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions