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)
commitba3bb0e76ccd464bb66665a1941fabe55dadb3ba
tree331f8bc7f2b3e7d58d4df3c4e8dcc4d389f32fd6
parent0da7536fb47f51df89ccfcb1fa09f249d9accec5
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: 03f45c883c6f ("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