nexthop: change nexthop_net_exit() to nexthop_net_exit_batch()
authorEric Dumazet <edumazet@google.com>
Tue, 8 Feb 2022 04:50:31 +0000 (20:50 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 9 Feb 2022 04:41:33 +0000 (20:41 -0800)
commitfea7b201320ca222d532398685d23db2b8d55558
tree667f66cd8596517277be3f5c769ac200e071fa83
parente66d117222047ea90f92e065f929bc0e0eec3647
nexthop: change nexthop_net_exit() to nexthop_net_exit_batch()

cleanup_net() is competing with other rtnl users.

nexthop_net_exit() seems a good candidate for exit_batch(),
as this gives chance for cleanup_net() to progress much faster,
holding rtnl a bit longer.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/nexthop.c