aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/devlink.c
diff options
context:
space:
mode:
authorKirill Tkhai <ktkhai@virtuozzo.com>2018-02-19 12:58:54 +0300
committerDavid S. Miller <davem@davemloft.net>2018-02-20 13:23:49 -0500
commit8349efd903394422d1598d196b6be70c410cf8f5 (patch)
tree0ebe27833d80a4162d34b6b46c8bc20db85b9dac /net/core/devlink.c
parentnet: Make cleanup_list and net::cleanup_list of llist type (diff)
downloadlinux-dev-8349efd903394422d1598d196b6be70c410cf8f5.tar.xz
linux-dev-8349efd903394422d1598d196b6be70c410cf8f5.zip
net: Queue net_cleanup_work only if there is first net added
When llist_add() returns false, cleanup_net() hasn't made its llist_del_all(), while the work has already been scheduled by the first queuer. So, we may skip queue_work() in this case. Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/devlink.c')
0 files changed, 0 insertions, 0 deletions