]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "udp: do rmem bulk free even if the rx sk queue is empty"
authorPaolo Abeni <pabeni@redhat.com>
Tue, 21 Jan 2020 15:50:49 +0000 (16:50 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Jan 2020 20:09:03 +0000 (21:09 +0100)
commit02cef6ee376a7723a33dc72928fd26b73257892d
tree3d994d0fb3e9b9f3087bbdf3540344adb871012c
parentb9b0aecc815c93df153077e2e3a0f9e98ed26089
Revert "udp: do rmem bulk free even if the rx sk queue is empty"

This reverts commit 4dc61cc8f2a7e2e41e15c6e3dc73326eccc9cfc8.

Williem reported that after commit 4dc61cc8f2a7 ("udp: do rmem bulk
free even if the rx sk queue is empty") the memory allocated by
an almost idle system with many UDP sockets can grow a lot.

For stable kernel keep the solution as simple as possible and revert
the offending commit.

Reported-by: Willem de Bruijn <willemdebruijn.kernel@gmail.com>
Diagnosed-by: Eric Dumazet <eric.dumazet@gmail.com>
Fixes: 4dc61cc8f2a7 ("udp: do rmem bulk free even if the rx sk queue is empty")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Acked-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/udp.c