Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6fcf9412 authored by John Heffner's avatar John Heffner Committed by David S. Miller
Browse files

[TCP]: rcvbuf lock when tcp_moderate_rcvbuf enabled



The rcvbuf lock should probably be honored here.

Signed-off-by: default avatarJohn Heffner <jheffner@psc.edu>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 80ba250e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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