Subject: [PATCH] change somaxconn sysctl to __read_mostly

From: Brian Haley <[email-masked]>
Date: Thu, 31 Aug 2006 16:35:33 -0400

Change sysctl_somaxconn to __read_mostly.

Signed-off-by: Brian Haley <[email-masked]>
diff --git a/net/socket.c b/net/socket.c
index f4d143c..e3d67fe 100644
--- a/net/socket.c
+++ b/net/socket.c
@@ -1336,7 +1336,7 @@ asmlinkage long sys_bind(int fd, struct 
  *	ready for listening.
  */
 
-int sysctl_somaxconn = SOMAXCONN;
+int sysctl_somaxconn __read_mostly = SOMAXCONN;
 
 asmlinkage long sys_listen(int fd, int backlog)
 {