mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
[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>
This commit is contained in:
parent
80ba250e59
commit
6fcf9412de
1 changed files with 2 additions and 1 deletions
|
@ -456,7 +456,8 @@ void tcp_rcv_space_adjust(struct sock *sk)
|
||||||
|
|
||||||
tp->rcvq_space.space = space;
|
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;
|
int new_clamp = space;
|
||||||
|
|
||||||
/* Receive space grows, normalize in order to
|
/* Receive space grows, normalize in order to
|
||||||
|
|
Loading…
Add table
Reference in a new issue