commit | 8349efd903394422d1598d196b6be70c410cf8f5 | [log] [tgz] |
---|---|---|
author | Kirill Tkhai <ktkhai@virtuozzo.com> | Mon Feb 19 12:58:54 2018 +0300 |
committer | David S. Miller <davem@davemloft.net> | Tue Feb 20 13:23:49 2018 -0500 |
tree | 0ebe27833d80a4162d34b6b46c8bc20db85b9dac | |
parent | 65b7b5b90fcd17b25ef43b0cd02bda47bf286675 [diff] |
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>