diff options
author | Slawomir Laba <[email protected]> | 2022-11-03 14:00:03 +0100 |
---|---|---|
committer | Tony Nguyen <[email protected]> | 2022-11-18 14:18:09 -0800 |
commit | a8417330f8a57275ed934293e832982b6d882713 (patch) | |
tree | cb43c470c27953cabf28cc8c446aba46c14d8494 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | bb861c14f1b8cb9cbf03a132db7f22ec4e692b91 (diff) |
iavf: Fix race condition between iavf_shutdown and iavf_remove
Fix a deadlock introduced by commit
974578017fc1 ("iavf: Add waiting so the port is initialized in remove")
due to race condition between iavf_shutdown and iavf_remove, where
iavf_remove stucks forever in while loop since iavf_shutdown already
set __IAVF_REMOVE adapter state.
Fix this by checking if the __IAVF_IN_REMOVE_TASK has already been
set and return if so.
Fixes: 974578017fc1 ("iavf: Add waiting so the port is initialized in remove")
Signed-off-by: Slawomir Laba <[email protected]>
Signed-off-by: Mateusz Palczewski <[email protected]>
Tested-by: Marek Szlosek <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions