]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbevf: Protect ixgbevf_down with __IXGBEVF_DOWN bit
authorMark Rustad <mark.d.rustad@intel.com>
Tue, 4 Mar 2014 03:02:18 +0000 (03:02 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 20 Mar 2014 00:17:24 +0000 (17:17 -0700)
commit66369ea9652f4a83016e3bc1f683ab6f0fa4b4a0
tree10635e0e8d9bea0cc424213033ba3fdcfdf1ab72
parent383e4fd61c977a76da482f54bd92d6da886cadb5
ixgbevf: Protect ixgbevf_down with __IXGBEVF_DOWN bit

The ixgbevf_down function can now prevent multiple executions by
doing test_and_set_bit on __IXGBEVF_DOWN. This did not work before
introduction of the __IXGBEVF_REMOVING bit, because of overloading
of __IXGBEVF_DOWN. Also add smp_mb__before_clear_bit call before
clearing the __IXGBEVF_DOWN bit.

Signed-off-by: Mark Rustad <mark.d.rustad@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c