From: Andrew Morton <[EMAIL PROTECTED]>
- save 4 bytes
- it's read-mostly.
Cc: "David S. Miller" <[EMAIL PROTECTED]>
Acked-by: Vasily Averin <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---
net/core/sock.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
diff -puN net/core/sock.c~wrong-timeout-value-in-sk_wait_data-v2-fix
net/core/sock.c
--- a/net/core/sock.c~wrong-timeout-value-in-sk_wait_data-v2-fix
+++ a/net/core/sock.c
@@ -210,7 +210,8 @@ static int sock_set_timeout(long *timeo_
return -EDOM;
if (tv.tv_sec < 0) {
- static int warned = 0;
+ static int warned __read_mostly;
+
*timeo_p = 0;
if (warned < 10 && net_ratelimit())
warned++;
_
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html