]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3caa77261fa4d4d5a3b39c5e29524a5bb1cc82b5
treec659697e541e4e21d757b580ed96db7dc5a6068a
parent6885848d28ab2c4227ac641129c23acd5c7fac6f
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