]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[TCP]: rcvbuf lock when tcp_moderate_rcvbuf enabled
authorJohn Heffner <jheffner@psc.edu>
Fri, 10 Feb 2006 01:06:57 +0000 (17:06 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Feb 2006 01:06:57 +0000 (17:06 -0800)
The rcvbuf lock should probably be honored here.

Signed-off-by: John Heffner <jheffner@psc.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_input.c

index a97ed5416c28ee14ecab0ac4483c079a0c3e4c1d..e9a54ae7d6903845598db14a8e1cba54026faf1b 100644 (file)
@@ -456,7 +456,8 @@ void tcp_rcv_space_adjust(struct sock *sk)
 
                tp->rcvq_space.space = space;
 
-               if (sysctl_tcp_moderate_rcvbuf) {
+               if (sysctl_tcp_moderate_rcvbuf &&
+                   !(sk->sk_userlocks & SOCK_RCVBUF_LOCK)) {
                        int new_clamp = space;
 
                        /* Receive space grows, normalize in order to