]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: take lock while updating node network address
authorAllan Stephens <allan.stephens@windriver.com>
Wed, 18 Apr 2012 13:12:09 +0000 (09:12 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 19 Apr 2012 19:46:46 +0000 (15:46 -0400)
commit58e6fe483e5f438eadbc610b6d9f223fa513c7c0
tree5f5c99f05f5dda3b6d4c384c1420700ab7d580ff
parent21ac05eb4b0f225c648af761f539feccb23b10ba
tipc: take lock while updating node network address

The routine that changes the node's network address now takes TIPC's
network lock in write mode while the main address variable and associated
data structures are being changed; this is needed to ensure that the
link subsystem won't attempt to send a message off-node until the sending
port's message header template has been updated with the node's new
network address.

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