• Kirill Tkhai's avatar
    net: Convert proc_net_ns_ops · f039e184
    Kirill Tkhai authored
    This patch starts to convert pernet_subsys, registered
    before initcalls.
    
    proc_net_ns_ops::proc_net_ns_init()/proc_net_ns_exit()
    {un,}register pernet net->proc_net and ->proc_net_stat.
    
    Constructors and destructors of another pernet_operations
    are not interested in foreign net's proc_net and proc_net_stat.
    Proc filesystem privitives are synchronized on proc_subdir_lock.
    
    So, proc_net_ns_ops methods are able to be executed
    in parallel with methods of any other pernet operations.
    Signed-off-by: default avatarKirill Tkhai <ktkhai@virtuozzo.com>
    Acked-by: default avatarAndrei Vagin <avagin@virtuozzo.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    f039e184
proc_net.c 4.67 KB