mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-19 23:06:11 +07:00
i40e: keep service tasks out of reset process
Make sure the service tasks don't try to meddle with the device while a reset is in progress. Odd things can happen such as funky stats values. Change-ID: I6929cb9d6d96839c9279362ca7c0e3fe6c8fcc66 Signed-off-by: Shannon Nelson <shannon.nelson@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
e91fdf7666
commit
e57a2fea87
@ -5961,6 +5961,12 @@ static void i40e_service_task(struct work_struct *work)
|
||||
service_task);
|
||||
unsigned long start_time = jiffies;
|
||||
|
||||
/* don't bother with service tasks if a reset is in progress */
|
||||
if (test_bit(__I40E_RESET_RECOVERY_PENDING, &pf->state)) {
|
||||
i40e_service_event_complete(pf);
|
||||
return;
|
||||
}
|
||||
|
||||
i40e_reset_subtask(pf);
|
||||
i40e_handle_mdd_event(pf);
|
||||
i40e_vc_process_vflr_event(pf);
|
||||
|
Loading…
Reference in New Issue
Block a user