]> git.baikalelectronics.ru Git - kernel.git/commit
ipfrag: really prevent allocation on netns exit
authorPaolo Abeni <pabeni@redhat.com>
Fri, 6 Jul 2018 10:30:20 +0000 (12:30 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 8 Jul 2018 04:05:33 +0000 (13:05 +0900)
commit952baa4858d929c56b0b46544eb39de79d80e828
tree9484acb56d8bfaed225e2d3aca9686f472b6057a
parent6eba86c25d22689ba81771582bd209f6b651e678
ipfrag: really prevent allocation on netns exit

Setting the low threshold to 0 has no effect on frags allocation,
we need to clear high_thresh instead.

The code was pre-existent to commit 3cba9fa68ae9 ("inet: frags:
use rhashtables for reassembly units"), but before the above,
such assignment had a different role: prevent concurrent eviction
from the worker and the netns cleanup helper.

Fixes: 3cba9fa68ae9 ("inet: frags: use rhashtables for reassembly units")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/inet_fragment.c