]> asedeno.scripts.mit.edu Git - linux.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)
commit7d6446db1bcb1008b84db098f4629664cd8b06a6
tree7ac89d5e52431bf1392d9d146c2f92c330ed826b
parent4be87727d4aebe36913d9f2a6806724cb593516f
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