Thread (6 messages) 6 messages, 3 authors, 2026-02-28

Re: [PATCH iproute2] ip/netns: avoid redundant mounts

From: David Ahern <dsahern@kernel.org>
Date: 2026-02-28 16:34:56

On 2/27/26 6:36 PM, Chen Linxuan wrote:
On Sat, Feb 28, 2026 at 4:30 AM David Ahern [off-list ref] wrote:
quoted
On 2/24/26 6:21 PM, Chen Linxuan wrote:
quoted
quoted
with this patch I am still seeing 2 entries:

$ sudo ./ip netns add blah
$ cat /proc/self/mountinfo  | grep blah
337 92 0:4 net:[4026532418] /run/netns/blah rw shared:344 - nsfs nsfs rw
338 28 0:4 net:[4026532418] /run/netns/blah rw shared:344 - nsfs nsfs rw
It seems like your old `ip` might have create the /run/netns mount point.
After remove all netns then umount /run/netns, and ip netns add blah again.
You should see only one entries.
Fair point. I no longer have the patch, so send it again and I will try
a test in a new VM.
Why has this patch been applied?
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=82c8b9fe511e6c503ef60c16eebc7a715c3189eb

What is going on here?
ugh. my mistake after testing and noting the above; I did not drop the
commit. I'll re-test when I get some time.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help