Skip to content

Commit

Permalink
net: Convert smack_net_ops
Browse files Browse the repository at this point in the history
These pernet_operations only register and unregister nf hooks.
So, they are able to be marked as async.

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Kirill Tkhai authored and David S. Miller committed Feb 27, 2018
1 parent 79a4fb0 commit 3edbccf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions security/smack/smack_netfilter.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ static void __net_exit smack_nf_unregister(struct net *net)
static struct pernet_operations smack_net_ops = {
.init = smack_nf_register,
.exit = smack_nf_unregister,
.async = true,
};

static int __init smack_nf_ip_init(void)
Expand Down

0 comments on commit 3edbccf

Please sign in to comment.