mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-18 19:12:56 +00:00
flowcache: Avoid OOM condition under preasure
We can hit an OOM condition if we are under presure because we can not free the entries in gc_list fast enough. So add a counter for the not yet freed entries in the gc_list and refuse new allocations if the value is too high. Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
This commit is contained in:
parent
aac8d3c282
commit
6ad3122a08
2 changed files with 14 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue