]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: Fix problem with missing link in "tipc-config -l" output
authorAllan Stephens <Allan.Stephens@windriver.com>
Thu, 24 Feb 2011 18:20:20 +0000 (13:20 -0500)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 13 Mar 2011 20:35:16 +0000 (16:35 -0400)
commitaa23568f4df1b07348f1c86121f99ef245de2783
treee54c8857773a3e54c213dd4f825b48fdd7ab295e
parent5edaa3fd8ca45c45f8a1d6a59ffb5e0240fa8d94
tipc: Fix problem with missing link in "tipc-config -l" output

Removes a race condition that could cause TIPC's internal counter
of the number of links it has to neighboring nodes to have the
incorrect value if two independent threads of control simultaneously
create new link endpoints connecting to two different nodes using two
different bearers. Such under counting would result in TIPC failing to
list the final link(s) in its response to a configuration request to
list all of the node's links. The counter is now updated atomically
to ensure that simultaneous increments do not interfere with each
other.

Thanks go to Peter Butler <pbutler@pt.com> for his assistance in
diagnosing and fixing this problem.

Signed-off-by: Allan Stephens <Allan.Stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
net/tipc/net.c
net/tipc/net.h
net/tipc/node.c