]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbevf: fix possible race in the reset subtask
authorEmil Tantilov <emil.s.tantilov@intel.com>
Tue, 22 May 2018 16:18:46 +0000 (09:18 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 4 Jun 2018 17:19:32 +0000 (10:19 -0700)
commitfb42849b9c85df0ee1543fb3520f3c6d4775d840
tree7ac89d5e52431bf1392d9d146c2f92c330ed826b
parentccb2e9ae6b3e3580e82768339118290a6a406ed6
ixgbevf: fix possible race in the reset subtask

Extend the RTNL lock in ixgbevf_reset_subtask() to protect the state bits
check in addition to the call to ixgbevf_reinit_locked().

This is to make sure that we get the most up-to-date values for the bits
and avoid a possible race when going down.

Suggested-by: Zhiping du <zhipingdu@tencent.com>
Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c