Here is a little patch to make netdev_fc_lock static instead of global.
It is against 2.4.7, but applies cleanly to 2.4.9.
The motivation for doing this came from this:
http://lse.sourceforge.net/lockhier/global-spin-lock
--- linux-2.4.7/net/core/sock.c Fri Jun 29 19:38:26 2001
+++ linux/net/core/sock.c Fri Jul 27 11:23:19 2001
@@ -861,7 +861,7 @@
* It is broken by design. All the protocols using it must be fixed.
--ANK
*/
-rwlock_t net_big_sklist_lock = RW_LOCK_UNLOCKED;
+static rwlock_t net_big_sklist_lock = RW_LOCK_UNLOCKED;
void sklist_remove_socket(struct sock **list, struct sock *sk)
{
--
David C. Hansen
haveblue@xxxxxxxxxx
IBM LTC Base/OS Group
(503)578-4080
|