]> 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)
commitf1a5fb7c0ae424215ba461767a4460b717dfac72
tree12fd2c836463a422776d23d46d277d54bc3d65d2
parentc33d8a07e942ffd124d2502d2f5c46a47ba4b767
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