net: Drop pernet_operations::async
Synchronous pernet_operations are not allowed anymore. All are asynchronous. So, drop the structure member. Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
094374e5e1
commit
2f635ceeb2
@@ -629,7 +629,6 @@ static void __net_exit netfilter_net_exit(struct net *net)
|
||||
static struct pernet_operations netfilter_net_ops = {
|
||||
.init = netfilter_net_init,
|
||||
.exit = netfilter_net_exit,
|
||||
.async = true,
|
||||
};
|
||||
|
||||
int __init netfilter_init(void)
|
||||
|
||||
@@ -2095,7 +2095,6 @@ static struct pernet_operations ip_set_net_ops = {
|
||||
.exit = ip_set_net_exit,
|
||||
.id = &ip_set_net_id,
|
||||
.size = sizeof(struct ip_set_net),
|
||||
.async = true,
|
||||
};
|
||||
|
||||
static int __init
|
||||
|
||||
@@ -2289,12 +2289,10 @@ static struct pernet_operations ipvs_core_ops = {
|
||||
.exit = __ip_vs_cleanup,
|
||||
.id = &ip_vs_net_id,
|
||||
.size = sizeof(struct netns_ipvs),
|
||||
.async = true,
|
||||
};
|
||||
|
||||
static struct pernet_operations ipvs_core_dev_ops = {
|
||||
.exit = __ip_vs_dev_cleanup,
|
||||
.async = true,
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
@@ -479,7 +479,6 @@ static void __ip_vs_ftp_exit(struct net *net)
|
||||
static struct pernet_operations ip_vs_ftp_ops = {
|
||||
.init = __ip_vs_ftp_init,
|
||||
.exit = __ip_vs_ftp_exit,
|
||||
.async = true,
|
||||
};
|
||||
|
||||
static int __init ip_vs_ftp_init(void)
|
||||
|
||||
@@ -604,7 +604,6 @@ static void __net_exit __ip_vs_lblc_exit(struct net *net) { }
|
||||
static struct pernet_operations ip_vs_lblc_ops = {
|
||||
.init = __ip_vs_lblc_init,
|
||||
.exit = __ip_vs_lblc_exit,
|
||||
.async = true,
|
||||
};
|
||||
|
||||
static int __init ip_vs_lblc_init(void)
|
||||
|
||||
@@ -789,7 +789,6 @@ static void __net_exit __ip_vs_lblcr_exit(struct net *net) { }
|
||||
static struct pernet_operations ip_vs_lblcr_ops = {
|
||||
.init = __ip_vs_lblcr_init,
|
||||
.exit = __ip_vs_lblcr_exit,
|
||||
.async = true,
|
||||
};
|
||||
|
||||
static int __init ip_vs_lblcr_init(void)
|
||||
|
||||
@@ -3417,7 +3417,6 @@ static void __net_exit ctnetlink_net_exit_batch(struct list_head *net_exit_list)
|
||||
static struct pernet_operations ctnetlink_net_ops = {
|
||||
.init = ctnetlink_net_init,
|
||||
.exit_batch = ctnetlink_net_exit_batch,
|
||||
.async = true,
|
||||
};
|
||||
|
||||
static int __init ctnetlink_init(void)
|
||||
|
||||
@@ -406,7 +406,6 @@ static struct pernet_operations proto_gre_net_ops = {
|
||||
.exit = proto_gre_net_exit,
|
||||
.id = &proto_gre_net_id,
|
||||
.size = sizeof(struct netns_proto_gre),
|
||||
.async = true,
|
||||
};
|
||||
|
||||
static int __init nf_ct_proto_gre_init(void)
|
||||
|
||||
@@ -705,7 +705,6 @@ static void nf_conntrack_pernet_exit(struct list_head *net_exit_list)
|
||||
static struct pernet_operations nf_conntrack_net_ops = {
|
||||
.init = nf_conntrack_pernet_init,
|
||||
.exit_batch = nf_conntrack_pernet_exit,
|
||||
.async = true,
|
||||
};
|
||||
|
||||
static int __init nf_conntrack_standalone_init(void)
|
||||
|
||||
@@ -577,7 +577,6 @@ static void __net_exit nf_log_net_exit(struct net *net)
|
||||
static struct pernet_operations nf_log_net_ops = {
|
||||
.init = nf_log_net_init,
|
||||
.exit = nf_log_net_exit,
|
||||
.async = true,
|
||||
};
|
||||
|
||||
int __init netfilter_log_init(void)
|
||||
|
||||
@@ -47,7 +47,6 @@ static void __net_exit nf_log_netdev_net_exit(struct net *net)
|
||||
static struct pernet_operations nf_log_netdev_net_ops = {
|
||||
.init = nf_log_netdev_net_init,
|
||||
.exit = nf_log_netdev_net_exit,
|
||||
.async = true,
|
||||
};
|
||||
|
||||
static int __init nf_log_netdev_init(void)
|
||||
|
||||
@@ -398,7 +398,6 @@ static struct pernet_operations synproxy_net_ops = {
|
||||
.exit = synproxy_net_exit,
|
||||
.id = &synproxy_net_id,
|
||||
.size = sizeof(struct synproxy_net),
|
||||
.async = true,
|
||||
};
|
||||
|
||||
static int __init synproxy_core_init(void)
|
||||
|
||||
@@ -6597,7 +6597,6 @@ static void __net_exit nf_tables_exit_net(struct net *net)
|
||||
static struct pernet_operations nf_tables_net_ops = {
|
||||
.init = nf_tables_init_net,
|
||||
.exit = nf_tables_exit_net,
|
||||
.async = true,
|
||||
};
|
||||
|
||||
static int __init nf_tables_module_init(void)
|
||||
|
||||
@@ -566,7 +566,6 @@ static void __net_exit nfnetlink_net_exit_batch(struct list_head *net_exit_list)
|
||||
static struct pernet_operations nfnetlink_net_ops = {
|
||||
.init = nfnetlink_net_init,
|
||||
.exit_batch = nfnetlink_net_exit_batch,
|
||||
.async = true,
|
||||
};
|
||||
|
||||
static int __init nfnetlink_init(void)
|
||||
|
||||
@@ -515,7 +515,6 @@ static void __net_exit nfnl_acct_net_exit(struct net *net)
|
||||
static struct pernet_operations nfnl_acct_ops = {
|
||||
.init = nfnl_acct_net_init,
|
||||
.exit = nfnl_acct_net_exit,
|
||||
.async = true,
|
||||
};
|
||||
|
||||
static int __init nfnl_acct_init(void)
|
||||
|
||||
@@ -586,7 +586,6 @@ static void __net_exit cttimeout_net_exit(struct net *net)
|
||||
static struct pernet_operations cttimeout_ops = {
|
||||
.init = cttimeout_net_init,
|
||||
.exit = cttimeout_net_exit,
|
||||
.async = true,
|
||||
};
|
||||
|
||||
static int __init cttimeout_init(void)
|
||||
|
||||
@@ -1108,7 +1108,6 @@ static struct pernet_operations nfnl_log_net_ops = {
|
||||
.exit = nfnl_log_net_exit,
|
||||
.id = &nfnl_log_net_id,
|
||||
.size = sizeof(struct nfnl_log_net),
|
||||
.async = true,
|
||||
};
|
||||
|
||||
static int __init nfnetlink_log_init(void)
|
||||
|
||||
@@ -1525,7 +1525,6 @@ static struct pernet_operations nfnl_queue_net_ops = {
|
||||
.exit_batch = nfnl_queue_net_exit_batch,
|
||||
.id = &nfnl_queue_net_id,
|
||||
.size = sizeof(struct nfnl_queue_net),
|
||||
.async = true,
|
||||
};
|
||||
|
||||
static int __init nfnetlink_queue_init(void)
|
||||
|
||||
@@ -1789,7 +1789,6 @@ static void __net_exit xt_net_exit(struct net *net)
|
||||
static struct pernet_operations xt_net_ops = {
|
||||
.init = xt_net_init,
|
||||
.exit = xt_net_exit,
|
||||
.async = true,
|
||||
};
|
||||
|
||||
static int __init xt_init(void)
|
||||
|
||||
@@ -1349,7 +1349,6 @@ static struct pernet_operations hashlimit_net_ops = {
|
||||
.exit = hashlimit_net_exit,
|
||||
.id = &hashlimit_net_id,
|
||||
.size = sizeof(struct hashlimit_net),
|
||||
.async = true,
|
||||
};
|
||||
|
||||
static int __init hashlimit_mt_init(void)
|
||||
|
||||
@@ -687,7 +687,6 @@ static struct pernet_operations recent_net_ops = {
|
||||
.exit = recent_net_exit,
|
||||
.id = &recent_net_id,
|
||||
.size = sizeof(struct recent_net),
|
||||
.async = true,
|
||||
};
|
||||
|
||||
static struct xt_match recent_mt_reg[] __read_mostly = {
|
||||
|
||||
Reference in New Issue
Block a user