diff options
| author | Robert Hancock <[email protected]> | 2019-06-07 10:42:36 -0600 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2019-06-09 19:25:59 -0700 |
| commit | 2158e856f56bb762ef90f3ec244d41a519826f75 (patch) | |
| tree | 50eb78dea2a7df27e52f863b4c2a288ac4e54e9f /tools/perf/scripts/python/bin | |
| parent | 257c25598584f9f7aaccbcd7b9a6faf23aec3156 (diff) | |
net: sfp: add mutex to prevent concurrent state checks
sfp_check_state can potentially be called by both a threaded IRQ handler
and delayed work. If it is concurrently called, it could result in
incorrect state management. Add a st_mutex to protect the state - this
lock gets taken outside of code that checks and handle state changes, and
the existing sm_mutex nests inside of it.
Suggested-by: Russell King <[email protected]>
Signed-off-by: Robert Hancock <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions