]> 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)
commit66064fd17017fae305be16d7786bb3b0db644df1
treeaefaeb429a611ae8a5489956e4004cdf09379416
parent8ab9691b0c4b9897babc4479eaf15511da7bb2b4
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