]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: add fib_net_exit_batch()
authorEric Dumazet <edumazet@google.com>
Tue, 8 Feb 2022 04:50:32 +0000 (20:50 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 9 Feb 2022 04:41:33 +0000 (20:41 -0800)
commit2bc8b5475e1f49323fbce51e71a1a72f1b162b28
treedf3596479d0b4e22477c1899c9aa33274a9ec99b
parentfc583c69f2a867467239fe420594fd1f11fc9245
ipv4: add fib_net_exit_batch()

cleanup_net() is competing with other rtnl users.

Instead of acquiring rtnl at each fib_net_exit() invocation,
add fib_net_exit_batch() so that rtnl is acquired once.

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/fib_frontend.c