]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] powerpc/cell spidernet refine locking
authorLinas Vepstas <linas@austin.ibm.com>
Tue, 10 Oct 2006 21:14:29 +0000 (16:14 -0500)
committerJeff Garzik <jeff@garzik.org>
Wed, 11 Oct 2006 08:04:26 +0000 (04:04 -0400)
commit9cc7bf7edf50a8a6b456b337aff97fe780ae369b
tree9512ef8f08a21ab7fa9398fdd31f1ad1810a4702
parent68a8c609b3071c2441fa64f584d15311f2c10e61
[PATCH] powerpc/cell spidernet refine locking

The transmit side of the spider ethernet driver currently
places locks around some very large chunks of code. This
results in a fair amount of lock contention is some cases.
This patch makes the locks much more fine-grained, protecting
only the cirtical sections. One lock is used to protect
three locations: the queue head and tail pointers, and the
queue low-watermark location.

Signed-off-by: Linas Vepstas <linas@austin.ibm.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: James K Lewis <jklewis@us.ibm.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/spider_net.c