tipc: avoid to asynchronously notify subscriptions
authorYing Xue <ying.xue@windriver.com>
Mon, 5 May 2014 00:56:12 +0000 (08:56 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 May 2014 21:26:44 +0000 (17:26 -0400)
commit9db9fdd1983eb960182d72f95d77b91b3a5173d0
tree0c4d21174478529972f3b630f7b1daa6f018f134
parent10f465c4966fbc8f50a59480d37a3451f6f3d564
tipc: avoid to asynchronously notify subscriptions

Postpone the actions of notifying subscriptions until after node lock
is released, avoiding to asynchronously execute registered handlers
when node is lost.

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/node.c
net/tipc/node.h
net/tipc/node_subscr.c
net/tipc/node_subscr.h