]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit76c658c74bfc7c3ae5d20ca1016c57b3d6b9b543
tree12fd2c836463a422776d23d46d277d54bc3d65d2
parent25554d037d410fe9d75243d6974ee9351c73b9cd
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