]> git.baikalelectronics.ru Git - kernel.git/commit
net: Make cleanup_list and net::cleanup_list of llist type
authorKirill Tkhai <ktkhai@virtuozzo.com>
Mon, 19 Feb 2018 09:58:45 +0000 (12:58 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Feb 2018 18:23:27 +0000 (13:23 -0500)
commit1b252fabd59d6bc2fcdaf6a64bd5087ed7ce278a
treeb850ae90d607134d8e5dced4c0d5533abfd24a71
parent425819e0e6c09dea3a4239339d60b9bf54084513
net: Make cleanup_list and net::cleanup_list of llist type

This simplifies cleanup queueing and makes cleanup lists
to use llist primitives. Since llist has its own cmpxchg()
ordering, cleanup_list_lock is not more need.

Also, struct llist_node is smaller, than struct list_head,
so we save some bytes in struct net with this patch.

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/net_namespace.h
net/core/net_namespace.c