Skip to content

Commit

Permalink
[TCP]: rcvbuf lock when tcp_moderate_rcvbuf enabled
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
John Heffner authored and David S. Miller committed Feb 10, 2006
1 parent 80ba250 commit 6fcf941
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/ipv4/tcp_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6fcf941

Please sign in to comment.