]> git.baikalelectronics.ru Git - kernel.git/commit
e1000e: fix stats locking in e1000_watchdog_task
authorFlavio Leitner <fleitner@redhat.com>
Tue, 5 Apr 2011 04:27:43 +0000 (04:27 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 14 Apr 2011 02:18:57 +0000 (19:18 -0700)
commitfb2bd101c62f207598fcc5e064b804aabf262eed
tree45ac55b9cd72f72493f5c69c43996c3ea45e7b6a
parenta82611e828cf7074c6f55747189751449bb189f8
e1000e: fix stats locking in e1000_watchdog_task

Just move the unlock down a bit because it unlocks too
early leaving a chance for get_stats64() run in parallel
while it is still accessing the stats.

Signed-off-by: Flavio Leitner <fleitner@redhat.com>
Acked-by: Bruce Allan <bruce.w.allan@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/e1000e/netdev.c