diff options
| author | 2019-06-07 10:42:36 -0600 | |
|---|---|---|
| committer | 2019-06-09 19:25:59 -0700 | |
| commit | 2158e856f56bb762ef90f3ec244d41a519826f75 (patch) | |
| tree | 50eb78dea2a7df27e52f863b4c2a288ac4e54e9f /scripts/stackusage | |
| parent | net: sfp: Stop SFP polling and interrupt handling during shutdown (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 <rmk+kernel@armlinux.org.uk>
Signed-off-by: Robert Hancock <hancock@sedsystems.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions
