]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Merge branch 'net-convert-exit_batch_rtnl-to-exit_rtnl'
authorJakub Kicinski <kuba@kernel.org>
Tue, 15 Apr 2025 00:09:13 +0000 (17:09 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 15 Apr 2025 00:09:14 +0000 (17:09 -0700)
commit505b930929db65bbbeb26d3b13c2919084891e9f
tree1f3459238d5f7b103e9159461afd474ebeb6c415
parentceaceaf79ea0fe337344fc5c1fb10a421a362410
parentc57a9c503543cd8829eeaaf88362199e0491c0d7
Merge branch 'net-convert-exit_batch_rtnl-to-exit_rtnl'

Kuniyuki Iwashima says:

====================
net: Convert ->exit_batch_rtnl() to ->exit_rtnl().

While converting nexthop to per-netns RTNL, there are two blockers
to using rtnl_net_dereference(), flush_all_nexthops() and
__unregister_nexthop_notifier(), both of which are called from
->exit_batch_rtnl().

Instead of spreading __rtnl_net_lock() over each ->exit_batch_rtnl(),
we should convert all ->exit_batch_rtnl() to per-net ->exit_rtnl() and
run it under __rtnl_net_lock() because all ->exit_batch_rtnl() functions
do not have anything to factor out for batching.

Patch 1 & 2 factorise the undo mechanism against ->init() into a single
function, and Patch 3 adds ->exit_batch_rtnl().

Patch 4 ~ 13 convert all ->exit_batch_rtnl() users.

Patch 14 removes ->exit_batch_rtnl().

Later, we can convert pfcp and ppp to use ->exit_rtnl().

v1: https://lore.kernel.org/all/20250410022004.8668-1-kuniyu@amazon.com/
====================

Link: https://patch.msgid.link/20250411205258.63164-1-kuniyu@amazon.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>