Commit a841733
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]>1 parent bb861c1 commit a841733
1 file changed
+7
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5042 | 5042 | | |
5043 | 5043 | | |
5044 | 5044 | | |
5045 | | - | |
5046 | 5045 | | |
5047 | 5046 | | |
| 5047 | + | |
5048 | 5048 | | |
5049 | 5049 | | |
5050 | | - | |
5051 | | - | |
| 5050 | + | |
| 5051 | + | |
5052 | 5052 | | |
5053 | 5053 | | |
5054 | | - | |
5055 | | - | |
5056 | | - | |
5057 | | - | |
5058 | | - | |
| 5054 | + | |
| 5055 | + | |
| 5056 | + | |
| 5057 | + | |
5059 | 5058 | | |
5060 | 5059 | | |
5061 | | - | |
5062 | 5060 | | |
5063 | 5061 | | |
5064 | 5062 | | |
| |||
0 commit comments