i40e: prevent service task from running while we're suspended
authorJacob Keller <jacob.e.keller@intel.com>
Fri, 14 Jul 2017 13:27:05 +0000 (09:27 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 29 Sep 2017 19:51:01 +0000 (12:51 -0700)
commit5c499228803a77bd4e878c7119fbd40a1dc6d773
tree12fd2c836463a422776d23d46d277d54bc3d65d2
parent401586c2b9bb16147f3dcc64d3596013625e2c44
i40e: prevent service task from running while we're suspended

Although the service task does check the suspended status before
running, it might already be part way through running when we go to
suspend. Lets ensure that the service task is stopped and will not be
restarted again until we finish resuming. This ensures that service task
code does not cause strange interactions with the suspend/resume
handlers.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c