diff options
author | John Heffner <jheffner@psc.edu> | 2006-02-09 17:06:57 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-02-09 17:06:57 -0800 |
commit | 6fcf9412de64056238a6295f21db7aa9c37a532e (patch) | |
tree | 06cd8f20551ce8173e8cccb8ecd628f955f7db6e /net | |
parent | 80ba250e59ced808a8c9b79560938bbe4509c0a7 (diff) | |
download | op-kernel-dev-6fcf9412de64056238a6295f21db7aa9c37a532e.zip op-kernel-dev-6fcf9412de64056238a6295f21db7aa9c37a532e.tar.gz |
[TCP]: rcvbuf lock when tcp_moderate_rcvbuf enabled
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>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/tcp_input.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index a97ed54..e9a54ae 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c @@ -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 |