net: net->nsid_lock does not need BH safety
authorEric Dumazet <edumazet@google.com>
Fri, 27 Jun 2025 16:32:42 +0000 (16:32 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 1 Jul 2025 01:58:20 +0000 (18:58 -0700)
commitaed4969f2bdfda5a2670684a02f483d261152816
tree9ed2c8d9b58d809c434c37b9429026305acb8ab4
parent7878e21e40d47f3e55968eec8b8c690d6b8f7813
net: net->nsid_lock does not need BH safety

At the time of commit bc51dddf98c9 ("netns: avoid disabling irq
for netns id") peernet2id() was not yet using RCU.

Commit 2dce224f469f ("netns: protect netns
ID lookups with RCU") changed peernet2id() to no longer
acquire net->nsid_lock (potentially from BH context).

We do not need to block soft interrupts when acquiring
net->nsid_lock anymore.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Guillaume Nault <gnault@redhat.com>
Cc: Cong Wang <xiyou.wangcong@gmail.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Link: https://patch.msgid.link/20250627163242.230866-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/net_namespace.c