diff options
| author | Kuniyuki Iwashima <kuniyu@google.com> | 2026-02-28 22:17:31 +0000 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-03-02 18:49:41 -0800 |
| commit | 4480d5fa1f6ebe7dfc546e14371d63c8b915a82d (patch) | |
| tree | ed85b16823337b289f164b952766e61b89be6d87 /include/linux/folio_queue.h | |
| parent | 1c36d186a0c81f3b55b2722736163233b05f8756 (diff) | |
ipmr/ip6mr: Convert net->ipv[46].ipmr_seq to atomic_t.
We will no longer hold RTNL for ipmr_mfc_add() and ipmr_mfc_delete().
MFC entry can be loosely connected with VIF by its index for
mrt->vif_table[] (stored in mfc_parent), but the two tables are
not synchronised. i.e. Even if VIF 1 is removed, MFC for VIF 1
is not automatically removed.
The only field that the MFC/VIF interfaces share is
net->ipv[46].ipmr_seq, which is protected by RTNL.
Adding a new mutex for both just to protect a single field is overkill.
Let's convert the field to atomic_t.
Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20260228221800.1082070-14-kuniyu@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/folio_queue.h')
0 files changed, 0 insertions, 0 deletions
