]> 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)
commit7f0ac667f978db4a11546c6c772925e349c6537b
treeb850ae90d607134d8e5dced4c0d5533abfd24a71
parent31d2349d6dac802c6e107be8b87c580fd4fd6e9f
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