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)
commit2eefbd63d0c85daa1317636474c226e236beba81
tree2c108c03a261dbc38b77954e96365c2070005d66
parentd100ba33f8d2c4dbb53b05f5ac49c39a0dd9dd76
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