e1000: convert to private mutex from rtnl
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Wed, 5 Oct 2011 07:24:51 +0000 (07:24 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 7 Oct 2011 05:40:56 +0000 (22:40 -0700)
commit0ef4eedc2e98edd51cd106e1f6a27178622b7e57
treec659697e541e4e21d757b580ed96db7dc5a6068a
parent4e0d8f7d97f9150bdd07f6355e5c1486967dce79
e1000: convert to private mutex from rtnl

The e1000 driver when running with lockdep could run into
some possible deadlocks between the work items acquiring
rtnl and the rtnl lock being acquired before work items
were cancelled.

Use a private mutex to make sure lock ordering isn't violated.
The private mutex is only used to protect areas not generally
covered by the rtnl lock already.

Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
CC: Thomas Gleixner <tglx@linutronix.de>
CC: Tushar Dave <tushar.n.dave@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/e1000/e1000.h
drivers/net/ethernet/intel/e1000/e1000_main.c