]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: fix SO_RCVLOWAT possible hangs under high mem pressure
authorEric Dumazet <edumazet@google.com>
Tue, 30 Jun 2020 20:51:28 +0000 (13:51 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Jul 2020 00:46:04 +0000 (17:46 -0700)
commit0e582a028ca860164d2a180401a7d47595caf106
tree331f8bc7f2b3e7d58d4df3c4e8dcc4d389f32fd6
parent8b30607e4462cc4978b674a9746052ffffffd526
tcp: fix SO_RCVLOWAT possible hangs under high mem pressure

Whenever tcp_try_rmem_schedule() returns an error, we are under
trouble and should make sure to wakeup readers so that they
can drain socket queues and eventually make room.

Fixes: 83cc0c6df61d ("tcp: avoid extra wakeups for SO_RCVLOWAT users")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_input.c