]> git.baikalelectronics.ru Git - kernel.git/commit
ixbge: Protect ixgbe_down with __IXGBE_DOWN bit
authorMark Rustad <mark.d.rustad@intel.com>
Wed, 15 Jan 2014 02:53:12 +0000 (18:53 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Jan 2014 02:59:17 +0000 (18:59 -0800)
commit643829aaff6dae8b3a1f3a583c199140f376fd5b
tree1a942ab2736a62e745faa8943848b149e1d4e841
parentbf4360a6d9423e04d4ac0cad8ff947f7c2a7e851
ixbge: Protect ixgbe_down with __IXGBE_DOWN bit

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

Signed-off-by: Mark Rustad <mark.d.rustad@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c