[lvc-project] [PATCH v2 5.10] net: defer final 'struct net' free in netns dismantle
Vasiliy Kovalev
kovalev at altlinux.org
Tue Jan 28 21:40:14 MSK 2025
28.01.2025 20:47, Fedor Pchelkin wrote:
> On Mon, 27. Jan 13:42, Hazem Mohamed Abuelfotoh wrote:
>> I think a better approach will be to backport 41467d2ff4df
>> ("net: net_namespace: Optimize the code") as a prerequisite for
>
> В принципе, неплохая идея. Василий, как думаете?
Да, чуть позже отправлю v3
>> 0f6ede9fbc74 ("net: defer final 'struct net' free in netns
>> dismantle") otherwise we may endup with refcount underflow whenever
>> "net_free" & "net_drop_ns" called sequentially as with the current
>> version of the backport both of them apparently call
>> refcount_dec_and_test(&ns->passive). In 41467d2ff4df
>> ("net: net_namespace: Optimize the code") there are two
>> hunks that aren't directly related to this backport however
>> these are removing duplicate code into a separate function
>> which will likely help with future backports. I have backported
>> both commits cleanly on 5.10.y and didn't see any issues and I
>> am currently testing the same on 5.4 as it's also missing both
>> commits.
--
--
Thanks,
Vasiliy
More information about the lvc-project
mailing list