ixgbe: fix possible race in reset subtask
authorTony Nguyen <anthony.l.nguyen@intel.com>
Wed, 30 May 2018 16:05:12 +0000 (09:05 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 4 Jun 2018 17:25:15 +0000 (10:25 -0700)
commit88adce4ea8f96b5191df2bea76905814cc3814e2
treeedc6117dc98d990a01043d6a501d65078eb51b67
parentcc5b114dcf986bfd8e4c37bf65d1b7b1e5290ac6
ixgbe: fix possible race in reset subtask

Similar to ixgbevf, the same possibility for race exists. Extend the RTNL
lock in ixgbe_reset_subtask() to protect the state bits; 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.

Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c