summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2022-01-18 03:43:40 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-01-27 09:04:33 +0100
commit4048cedfd16a995b2ef4294b9539da17e2fea750 (patch)
tree6ef6e525c32bbf4bfd8143196825dc7f1e77e072 /drivers/net
parent9f9ba0b65031c68384d88580d987f1fdf2b9478d (diff)
downloadlinux-stable-4048cedfd16a995b2ef4294b9539da17e2fea750.tar.gz
linux-stable-4048cedfd16a995b2ef4294b9539da17e2fea750.tar.bz2
linux-stable-4048cedfd16a995b2ef4294b9539da17e2fea750.zip
netns: add schedule point in ops_exit_list()
commit 2836615aa22de55b8fca5e32fe1b27a67cda625e upstream. When under stress, cleanup_net() can have to dismantle netns in big numbers. ops_exit_list() currently calls many helpers [1] that have no schedule point, and we can end up with soft lockups, particularly on hosts with many cpus. Even for moderate amount of netns processed by cleanup_net() this patch avoids latency spikes. [1] Some of these helpers like fib_sync_up() and fib_sync_down_dev() are very slow because net/ipv4/fib_semantics.c uses host-wide hash tables, and ifindex is used as the only input of two hash functions. ifindexes tend to be the same for all netns (lo.ifindex==1 per instance) This will be fixed in a separate patch. Fixes: 72ad937abd0a ("net: Add support for batching network namespace cleanups") Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: Eric W. Biederman <ebiederm@xmission.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net')
0 files changed, 0 insertions, 0 deletions