summaryrefslogtreecommitdiff
path: root/net/tipc/core.c
diff options
context:
space:
mode:
authorErik Hugne <erik.hugne@gmail.com>2016-04-07 10:40:43 -0400
committerDavid S. Miller <davem@davemloft.net>2016-04-11 15:22:20 -0400
commit541726abe7daca64390c2ec34e6a203145f1686d (patch)
treed335e57ce92b7092cadd7c6e406d3b0c5bfa56e6 /net/tipc/core.c
parentebf4dc2b1b2b9c8c7797f01a952bce3cf0247a4f (diff)
downloadlinux-rpi3-541726abe7daca64390c2ec34e6a203145f1686d.tar.gz
linux-rpi3-541726abe7daca64390c2ec34e6a203145f1686d.tar.bz2
linux-rpi3-541726abe7daca64390c2ec34e6a203145f1686d.zip
tipc: make dist queue pernet
Nametable updates received from the network that cannot be applied immediately are placed on a defer queue. This queue is global to the TIPC module, which might cause problems when using TIPC in containers. To prevent nametable updates from escaping into the wrong namespace, we make the queue pernet instead. Signed-off-by: Erik Hugne <erik.hugne@gmail.com> Signed-off-by: Jon Maloy <jon.maloy@ericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/core.c')
-rw-r--r--net/tipc/core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/tipc/core.c b/net/tipc/core.c
index 03a842870c52..e2bdb07a49a2 100644
--- a/net/tipc/core.c
+++ b/net/tipc/core.c
@@ -69,6 +69,7 @@ static int __net_init tipc_init_net(struct net *net)
if (err)
goto out_nametbl;
+ INIT_LIST_HEAD(&tn->dist_queue);
err = tipc_topsrv_start(net);
if (err)
goto out_subscr;