OpenVZ Forum


Home » Mailing lists » Devel » [PATCH 1/2] cleanup pernet operation without CONFIG_NET_NS
Re: [PATCH 1/2] cleanup pernet operation without CONFIG_NET_NS [message #23328 is a reply to message #22907] Thu, 15 November 2007 14:13 Go to previous message
ebiederm is currently offline  ebiederm
Messages: 1354
Registered: February 2006
Senior Member
"Denis V. Lunev" <den@openvz.org> writes:

> If CONFIG_NET_NS is not set, the only namespace is possible.
>
> This patch removes list of pernet_operations and cleanups code a bit.
> This list is not needed if there are no namespaces. We should just call
> ->init method.
>
> Additionally, the ->exit will be called on module unloading only. This
> case is safe - the code is not discarded. For the in/kernel code, ->exit
> should never be called.

This patch looks sane, and reasonable in the !CONFIG_NET_NS case.

Eric
_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
 
Read Message
Read Message
Read Message
Previous Topic: [patch 10/10][NETNS][IP6_FIB] make gc timer handle several network namespace
Next Topic: [PATCH] proc: remove MODULE_LICENSE
Goto Forum:
  


Current Time: Sun Aug 17 18:31:58 GMT 2025

Total time taken to generate the page: 0.17369 seconds