tipc: Give Tx of discovery responses priority over link messages
authorAllan Stephens <Allan.Stephens@windriver.com>
Mon, 28 Feb 2011 15:56:23 +0000 (10:56 -0500)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 13 Mar 2011 20:35:18 +0000 (16:35 -0400)
commitfa2bae2d5bede252445cc457737d00f9036c41c3
treea4f826a7716a4d3c5c14b1e5f957646e03c202f4
parenta728750e4f0c9500741406299f1817022d411d33
tipc: Give Tx of discovery responses priority over link messages

Delay releasing the node lock when processing a neighbor discovery
message until after the optional discovery response message has been
sent. This helps ensure that any link protocol messages sent by a
link endpoint created as a result of a neighbor discovery request
are received after the discovery response is received, thereby
giving the receiving node a chance to create a peer link endpoint to
consume those link protocol messages, if one does not already exist.

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