aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorAllan Stephens <allan.stephens@windriver.com>2011-10-20 09:48:05 -0400
committerPaul Gortmaker <paul.gortmaker@windriver.com>2011-12-27 11:33:45 -0500
commit97f1b625d133b44d38b8b55ec2cbe35d7ef94f3a (patch)
treef564ae9e89903e750778d390a8c8859f420893d8 /net
parentd47ce2ece33eac5c2b12d52622d1b17fe6a34ce9 (diff)
tipc: Minor correction to TIPC module unloading
Modifies TIPC's module unloading logic to switch itself into "single node" mode before starting to terminate networking support. This helps to ensure that no operations that require TIPC to be in "networking" mode can initiate once unloading starts. Signed-off-by: Allan Stephens <allan.stephens@windriver.com> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'net')
-rw-r--r--net/tipc/net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tipc/net.c b/net/tipc/net.c
index fafef6c3c0f6..e13162fc61cf 100644
--- a/net/tipc/net.c
+++ b/net/tipc/net.c
@@ -207,8 +207,8 @@ void tipc_net_stop(void)
207 if (tipc_mode != TIPC_NET_MODE) 207 if (tipc_mode != TIPC_NET_MODE)
208 return; 208 return;
209 write_lock_bh(&tipc_net_lock); 209 write_lock_bh(&tipc_net_lock);
210 tipc_bearer_stop();
211 tipc_mode = TIPC_NODE_MODE; 210 tipc_mode = TIPC_NODE_MODE;
211 tipc_bearer_stop();
212 tipc_bclink_stop(); 212 tipc_bclink_stop();
213 list_for_each_entry_safe(node, t_node, &tipc_node_list, list) 213 list_for_each_entry_safe(node, t_node, &tipc_node_list, list)
214 tipc_node_delete(node); 214 tipc_node_delete(node);