Skip to content

Commit

Permalink
net: Convert br_net_ops
Browse files Browse the repository at this point in the history
These pernet_operations are similar to bond_net_ops. Exit method
unregisters all net bridge devices, and it looks like another
pernet_operations are not interested in foreign net bridge list.
So, it's possible to mark them 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 davem330 committed Feb 27, 2018
1 parent ef74c07 commit 3cec5fb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/bridge/br.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ static void __net_exit br_net_exit(struct net *net)

static struct pernet_operations br_net_ops = {
.exit = br_net_exit,
.async = true,
};

static const struct stp_proto br_stp_proto = {
Expand Down

0 comments on commit 3cec5fb

Please sign in to comment.