summaryrefslogtreecommitdiff
path: root/net/tipc/node_subscr.h
diff options
context:
space:
mode:
authorYing Xue <ying.xue@windriver.com>2014-05-05 00:56:12 (GMT)
committerDavid S. Miller <davem@davemloft.net>2014-05-05 21:26:44 (GMT)
commit9db9fdd1983eb960182d72f95d77b91b3a5173d0 (patch)
tree0c4d21174478529972f3b630f7b1daa6f018f134 /net/tipc/node_subscr.h
parent10f465c4966fbc8f50a59480d37a3451f6f3d564 (diff)
downloadlinux-9db9fdd1983eb960182d72f95d77b91b3a5173d0.tar.xz
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>
Diffstat (limited to 'net/tipc/node_subscr.h')
-rw-r--r--net/tipc/node_subscr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tipc/node_subscr.h b/net/tipc/node_subscr.h
index c95d207..d91b8cc 100644
--- a/net/tipc/node_subscr.h
+++ b/net/tipc/node_subscr.h
@@ -58,6 +58,6 @@ struct tipc_node_subscr {
void tipc_nodesub_subscribe(struct tipc_node_subscr *node_sub, u32 addr,
void *usr_handle, net_ev_handler handle_down);
void tipc_nodesub_unsubscribe(struct tipc_node_subscr *node_sub);
-void tipc_nodesub_notify(struct tipc_node *node);
+void tipc_nodesub_notify(struct list_head *nsub_list);
#endif