projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a8e9be
)
net: Convert nfnl_acct_ops
author
Kirill Tkhai
<
[email protected]
>
Wed, 7 Mar 2018 09:39:42 +0000
(12:39 +0300)
committer
David S. Miller
<
[email protected]
>
Thu, 8 Mar 2018 17:36:44 +0000
(12:36 -0500)
These pernet_operations look closed in themself,
and there are no other users of net::nfnl_acct_list
outside. They are safe to be executed for several
net namespaces in parallel.
Signed-off-by: Kirill Tkhai <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/netfilter/nfnetlink_acct.c
patch
|
blob
|
history
diff --git
a/net/netfilter/nfnetlink_acct.c
b/net/netfilter/nfnetlink_acct.c
index 88d427f9f9e6a0f461527ad117a157f395982ea9..8d9f18bb8840677883f50810135e075a17e828e8 100644
(file)
--- a/
net/netfilter/nfnetlink_acct.c
+++ b/
net/netfilter/nfnetlink_acct.c
@@
-515,6
+515,7
@@
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)