From: Kirill Tkhai Date: Wed, 7 Mar 2018 09:40:19 +0000 (+0300) Subject: net: Convert pg_net_ops X-Git-Tag: v4.17-rc1~148^2~250^2~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=59d269731e2bcfb72d29f2e0281d6631aef1ff8e;p=thirdparty%2Flinux.git net: Convert pg_net_ops These pernet_operations create per-net pktgen threads and /proc entries. These pernet subsys looks closed in itself, and there are no pernet_operations outside this file, which are interested in the threads. Init and/or exit methods look safe to be executed in parallel. Signed-off-by: Kirill Tkhai Signed-off-by: David S. Miller --- diff --git a/net/core/pktgen.c b/net/core/pktgen.c index b8ab5c8295113..d81bddd1bb807 100644 --- a/net/core/pktgen.c +++ b/net/core/pktgen.c @@ -3851,6 +3851,7 @@ static struct pernet_operations pg_net_ops = { .exit = pg_net_exit, .id = &pg_net_id, .size = sizeof(struct pktgen_net), + .async = true, }; static int __init pg_init(void)