]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: fix race condition with shutdown
authorDon Skidmore <donald.c.skidmore@intel.com>
Sat, 17 Mar 2012 05:51:52 +0000 (05:51 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 3 May 2012 10:02:43 +0000 (03:02 -0700)
commit6d45558d787cdb44a3d92b5e491547943830ed0f
tree4d5530f6cd86d1f255691add0d1be18a44a20f72
parent4cb2d7fd50e67dfe527f8f9bcef8dfdf18270c68
ixgbe: fix race condition with shutdown

It was possible for shutdown to pull the rug out from other driver entry
points.  Now we just grab the rtnl lock before taking everything apart.
Thanks to Hariharan for noticing this tight race condition.

Signed-off-by: Don Skidmore <donald.c.skidmore@intel.com>
Cc: Hariharan Nagarajan <hanagara@cisco.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c