Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iavf: Fix race condition between iavf_shutdown and iavf_remove
Fix a deadlock introduced by commit 9745780 ("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: 9745780 ("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]>
- Loading branch information