]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: Optimizations to link creation code
authorAllan Stephens <Allan.Stephens@windriver.com>
Mon, 28 Feb 2011 16:32:27 +0000 (11:32 -0500)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 13 Mar 2011 20:35:18 +0000 (16:35 -0400)
commitf7d804257cffc93dd6831eb293cfe8a28e5a7aaa
tree6e90ee920265bfd5e56a9919f1bc7667ab6aa182
parent0da0ae26b42e7a07d34ad06d8712a4c1b7787e42
tipc: Optimizations to link creation code

Enhances link creation code as follows:

1) Detects illegal attempts to add a requested link earlier in the
   link creation process. This prevents TIPC from wasting time
   initializing a link object it then throws away, and also eliminates
   the code needed to do the throwing away.

2) Passes in the node object associated with the requested link.
   This allows TIPC to eliminate a search to locate the node object,
   as well as code that attempted to create the node if it doesn't
   exist.

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