netdev
[Top] [All Lists]

[PATCH] to make netdev_fc_lock static

To: netdev@xxxxxxxxxxx
Subject: [PATCH] to make netdev_fc_lock static
From: "David C. Hansen" <haveblue@xxxxxxxxxx>
Date: Wed, 05 Sep 2001 15:22:55 -0700
Sender: owner-netdev@xxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] to make netdev_fc_lock static, David C. Hansen <=