tipc: always use tipc_node_lock() to hold node lock
authorYing Xue <ying.xue@windriver.com>
Mon, 5 May 2014 00:56:09 +0000 (08:56 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 May 2014 21:26:43 +0000 (17:26 -0400)
commit5356f3d7d48af72eb2a14b643d5563f068c44fe0
treee0ad9803f7fbf71b467ea9bb3e24f64dc673939a
parent5b579e212fc77b6731e2767a0658ae7b64a67a10
tipc: always use tipc_node_lock() to hold node lock

Although we obtain node lock with tipc_node_lock() in most time, there
are still places where we directly use native spin lock interface
to grab node lock. But as we will do more jobs in the future when node
lock is released, we should ensure that tipc_node_lock() is always
called when node lock is taken.

Signed-off-by: Ying Xue <ying.xue@windriver.com>
Reviewed-by: Erik Hugne <erik.hugne@ericsson.com>
Reviewed-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/link.c
net/tipc/name_distr.c