Commit 14756b2
iavf: Fix __IAVF_RESETTING state usage
The setup of __IAVF_RESETTING state in watchdog task had no
effect and could lead to slow resets in the driver as
the task for __IAVF_RESETTING state only requeues watchdog.
Till now the __IAVF_RESETTING was interpreted by reset task
as running state which could lead to errors with allocating
and resources disposal.
Make watchdog_task queue the reset task when it's necessary.
Do not update the state to __IAVF_RESETTING so the reset task
knows exactly what is the current state of the adapter.
Fixes: 898ef1c ("iavf: Combine init and watchdog state machines")
Signed-off-by: Slawomir Laba <slawomirx.laba@intel.com>
Signed-off-by: Phani Burra <phani.r.burra@intel.com>
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Mateusz Palczewski <mateusz.palczewski@intel.com>
Tested-by: Konrad Jankowski <konrad0.jankowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>1 parent d2c0f45 commit 14756b2
1 file changed
Lines changed: 6 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1137 | 1137 | | |
1138 | 1138 | | |
1139 | 1139 | | |
1140 | | - | |
1141 | | - | |
| 1140 | + | |
1142 | 1141 | | |
1143 | 1142 | | |
1144 | 1143 | | |
| |||
2385 | 2384 | | |
2386 | 2385 | | |
2387 | 2386 | | |
2388 | | - | |
2389 | | - | |
2390 | | - | |
| 2387 | + | |
2391 | 2388 | | |
2392 | 2389 | | |
| 2390 | + | |
| 2391 | + | |
| 2392 | + | |
2393 | 2393 | | |
2394 | 2394 | | |
2395 | 2395 | | |
| |||
2697 | 2697 | | |
2698 | 2698 | | |
2699 | 2699 | | |
2700 | | - | |
2701 | | - | |
| 2700 | + | |
2702 | 2701 | | |
2703 | 2702 | | |
2704 | 2703 | | |
| |||
0 commit comments