Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=6f11df8355e8f59f7572bf6ac1f63d692483b0c6
Commit:     6f11df8355e8f59f7572bf6ac1f63d692483b0c6
Parent:     60f0438a87cfd9f5faa439ca419497cd64e4c59e
Author:     Andrew Morton <[EMAIL PROTECTED]>
AuthorDate: Mon Jul 9 13:16:00 2007 -0700
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Tue Jul 10 22:18:50 2007 -0700

    [NET]: "wrong timeout value in sk_wait_data()": cleanups
    
    - save 4 bytes
    
    - it's read-mostly.
    
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Acked-by: Vasily Averin <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 net/core/sock.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/net/core/sock.c b/net/core/sock.c
index 252d21a..091032a 100644
--- a/net/core/sock.c
+++ b/net/core/sock.c
@@ -210,7 +210,8 @@ static int sock_set_timeout(long *timeo_p, char __user 
*optval, int optlen)
                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 git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to