]> Pileus Git - ~andy/linux/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)
commitf21536d1e73c36b37c50f71013c67f19db77d4b8
treeaefaeb429a611ae8a5489956e4004cdf09379416
parent5eb0a291fbde1842b8e3f241183a0e2c1399c600
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