]> git.baikalelectronics.ru Git - kernel.git/commit
ehea: fix mutex and spinlock use
authorSebastien Dugue <sebastien.dugue@bull.net>
Thu, 11 Sep 2008 13:34:40 +0000 (15:34 +0200)
committerJeff Garzik <jgarzik@redhat.com>
Wed, 24 Sep 2008 22:58:55 +0000 (18:58 -0400)
commit86bb96f700e9e69a2918fe67e61f94d9235ca534
tree2c108c03a261dbc38b77954e96365c2070005d66
parenta069d730bc3c3a3ff3a706ae1306fee5e20738ec
ehea: fix mutex and spinlock use

  Looks like to me that the ehea_fw_handles.lock mutex and the
ehea_bcmc_regs.lock spinlock are taken much longer than necessary and could
as well be pushed inside the functions that need them
(ehea_update_firmware_handles() and ehea_update_bcmc_registrations())
rather than at each callsite.

Signed-off-by: Sebastien Dugue <sebastien.dugue@bull.net>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/ehea/ehea_main.c