netns: add register_pernet_gen_subsys/unregister_pernet_gen_subsys
authorAlexey Dobriyan <adobriyan@gmail.com>
Fri, 31 Oct 2008 06:55:16 +0000 (23:55 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 31 Oct 2008 06:55:16 +0000 (23:55 -0700)
commit485ac57bc1238719b1508f91b0f9eeda4a3c84bb
treedaa4c6fde9255c7d3a2a1add5c8c78b418d5e81e
parentad1d967c88e349c7e822ad75dd3247a2a50d2ea3
netns: add register_pernet_gen_subsys/unregister_pernet_gen_subsys

netns ops which are registered with register_pernet_gen_device() are
shutdown strictly before those which are registered with
register_pernet_subsys(). Sometimes this leads to opposite (read: buggy)
shutdown ordering between two modules.

Add register_pernet_gen_subsys()/unregister_pernet_gen_subsys() for modules
which aren't elite enough for entry in struct net, and which can't use
register_pernet_gen_device(). PPTP conntracking module is such one.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/net_namespace.h
net/core/net_namespace.c