Commit 84941b67 authored by Pandi Kumar Maharajan's avatar Pandi Kumar Maharajan Committed by Tim Gardner

i40e: suspend scheduling during driver unload

BugLink: http://bugs.launchpad.net/bugs/1547674

We need to suspend scheduling or any pending service task during driver
unload process, so that new task will not be scheduled. This patch sets
the suspend flag bit during reload which avoids service task execution.

Change-ID: I017c57b5d6656564556e3c5387da671369a572ac
Signed-off-by: default avatarPandi Kumar Maharajan <pandi.maharajan@intel.com>
Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
(cherry picked from net-next commit a4618ec8)
Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
parent 6626162e
......@@ -11206,6 +11206,7 @@ static void i40e_remove(struct pci_dev *pdev)
i40e_write_rx_ctl(hw, I40E_PFQF_HENA(1), 0);
/* no more scheduling of any task */
set_bit(__I40E_SUSPENDED, &pf->state);
set_bit(__I40E_DOWN, &pf->state);
del_timer_sync(&pf->service_timer);
cancel_work_sync(&pf->service_task);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment