# Re: \[PATCH net\] Revert "udp: do rmem bulk free even if the rx sk queue is empty"

- From: Willem de Bruijn \<willemdebruijn.kernel@gmail.com\>
- Date: 2020-01-21 18:26:43 
- List: netdev
- Page: https://ratatoskr.run/netdev/2020/01/11158571
- Thread: https://ratatoskr.run/netdev/2020/01/11158534/t.md

```text
On Tue, Jan 21, 2020 at 10:51 AM Paolo Abeni [ref] wrote:
>
> This reverts commit 0d4a6608f68c7532dcbfec2ea1150c9761767d03.
>
> Williem reported that after commit 0d4a6608f68c ("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 [ref]
> Fixes: 0d4a6608f68c ("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>

Thanks Paolo
```
