]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: Ensure network address change doesn't impact new port
authorAllan Stephens <allan.stephens@windriver.com>
Tue, 17 Apr 2012 22:22:49 +0000 (18:22 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 19 Apr 2012 19:46:42 +0000 (15:46 -0400)
commit3740b818b66d9066b899293e1141392075078fe7
treeaefaeb429a611ae8a5489956e4004cdf09379416
parent825c2ca0ffeda3442f47ac76d9a07806703bccb7
tipc: Ensure network address change doesn't impact new port

Re-orders port creation logic so that the initialization of a new
port's message header template occurs while the port list lock is
held. This ensures that a change to the node's network address that
occurs at the same time as the port is being created does not result
in the template identifying the sender using the former network
address. The new approach guarantees that the new port's template is
using the current network address or that it will be updated when
the address changes.

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