Skip to content

Commit

Permalink
net: Convert unix_net_ops
Browse files Browse the repository at this point in the history
These pernet_operations are just create and destroy
/proc and sysctl entries, and are not touched by
foreign pernet_operations.

So, we are able to make them async.

Signed-off-by: Kirill Tkhai <[email protected]>
Acked-by: Andrei Vagin <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Kirill Tkhai authored and davem330 committed Feb 13, 2018
1 parent f84c682 commit 167f7ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/unix/af_unix.c
Original file line number Diff line number Diff line change
Expand Up @@ -2913,6 +2913,7 @@ static void __net_exit unix_net_exit(struct net *net)
static struct pernet_operations unix_net_ops = {
.init = unix_net_init,
.exit = unix_net_exit,
.async = true,
};

static int __init af_unix_init(void)
Expand Down

0 comments on commit 167f7ac

Please sign in to comment.