[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <200707091851.l69IpBFV001731@imap1.linux-foundation.org>
Date: Mon, 09 Jul 2007 11:51:10 -0700
From: akpm@...ux-foundation.org
To: davem@...emloft.net
Cc: netdev@...r.kernel.org, akpm@...ux-foundation.org, vvs@...ru
Subject: [patch 3/8] "wrong timeout value in sk_wait_data()": cleanups
From: Andrew Morton <akpm@...ux-foundation.org>
- save 4 bytes
- it's read-mostly.
Cc: "David S. Miller" <davem@...emloft.net>
Acked-by: Vasily Averin <vvs@...ru>
Signed-off-by: Andrew Morton <akpm@...ux-foundation.org>
---
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 majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists