]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit81a91a71a4785fa7d5228a467e6b68044f26a12a
treedbeb843af969bdd903410d4ea5351db041893058
parentc95f391e466dddc62b5caaf4d1f8037e4f2ef5b3
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