[PATCH] mv643xx_eth: Hold spinlocks only where needed
commit8f5187035ad475c90ca865318daa09ba43bc3e68
authorDale Farnsworth <dale@farnsworth.org>
Mon, 16 Jan 2006 23:56:30 +0000 (16 16:56 -0700)
committerJeff Garzik <jgarzik@pobox.com>
Tue, 17 Jan 2006 12:23:38 +0000 (17 07:23 -0500)
tree43b304d094d8fec20a2589239f56ff31bc4aa8d1
parentdd09b1de08b28ccfb130ca97d617dc3283165d22
[PATCH] mv643xx_eth: Hold spinlocks only where needed

This driver has historically held a spin_lock during the entire open
and stop functions and while receiving multiple packets.  This is
unecessarily long and holds locks during calls that may sleep.
This patch reduces the size of windows where locks are held.

Signed-off-by: Dale Farnsworth <dale@farnsworth.org>
 mv643xx_eth.c |  172 ++++++++++++++++++++++++++++++----------------------------
 1 file changed, 91 insertions(+), 81 deletions(-)
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/net/mv643xx_eth.c