diff options
author | Ying Xue <ying.xue@windriver.com> | 2014-05-05 02:56:12 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-05-05 23:26:44 +0200 |
commit | 9db9fdd1983eb960182d72f95d77b91b3a5173d0 (patch) | |
tree | 0c4d21174478529972f3b630f7b1daa6f018f134 /net/tipc/node_subscr.h | |
parent | tipc: rename setup_blocked variable of node struct to flags (diff) | |
download | linux-9db9fdd1983eb960182d72f95d77b91b3a5173d0.tar.xz linux-9db9fdd1983eb960182d72f95d77b91b3a5173d0.zip |
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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tipc/node_subscr.h b/net/tipc/node_subscr.h index c95d20727ded..d91b8cc81e3d 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 |