summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKuniyuki Iwashima <kuniyu@google.com>2026-02-28 22:17:33 +0000
committerJakub Kicinski <kuba@kernel.org>2026-03-02 18:49:41 -0800
commitbddafc06ca5ee1be4d10061f7954c6d6be5dc1d8 (patch)
tree277923ee9b620b511a000d8b5ad27f5296edc5b0 /include
parent3c1e53e55418d4ca4040e281501643a96e227974 (diff)
ipmr: Don't hold RTNL for ipmr_rtm_route().
ipmr_mfc_add() and ipmr_mfc_delete() are already protected by a dedicated mutex. rtm_to_ipmr_mfcc() calls __ipmr_get_table(), __dev_get_by_index(), amd ipmr_find_vif(). Once __dev_get_by_index() is converted to dev_get_by_index_rcu(), we can move the other two functions under that same RCU section and drop RTNL for ipmr_rtm_route(). Let's do that conversion and drop ASSERT_RTNL() in mr_call_mfc_notifiers(). Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com> Reviewed-by: Eric Dumazet <edumazet@google.com> Link: https://patch.msgid.link/20260228221800.1082070-16-kuniyu@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mroute_base.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/mroute_base.h b/include/linux/mroute_base.h
index 0baa6f994da9..cf3374580f74 100644
--- a/include/linux/mroute_base.h
+++ b/include/linux/mroute_base.h
@@ -208,7 +208,6 @@ static inline int mr_call_mfc_notifiers(struct net *net,
.tb_id = tb_id
};
- ASSERT_RTNL();
atomic_inc(ipmr_seq);
return call_fib_notifiers(net, event_type, &info.info);
}