net: make net->dev_unreg_count atomic
authorEric Dumazet <edumazet@google.com>
Thu, 10 Feb 2022 02:59:32 +0000 (18:59 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Feb 2022 15:30:26 +0000 (15:30 +0000)
commitede6c39c4f9068cbeb4036448c45fff5393e0432
treedbeb843af969bdd903410d4ea5351db041893058
parentca2d5f1ff05955da9506055e88c4bbb71da190f1
net: make net->dev_unreg_count atomic

Having to acquire rtnl from netdev_run_todo() for every dismantled
device is not desirable when/if rtnl is under stress.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/net_namespace.h
net/core/dev.c
net/core/rtnetlink.c