diff options
author | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2016-05-22 15:31:45 +0200 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2016-05-22 15:31:45 +0200 |
commit | 0200dcb157be0e62eb495bc870cdac03130c2aa1 (patch) | |
tree | fe6459aadc00e81ef1252392dc07e009e3e8888e /src/irmd | |
parent | 745cc666e34d7e0c29822615987ce02832ac5a8c (diff) | |
parent | dfe5a46fb5315112d1173ac983ffc416dc3ecf18 (diff) | |
download | ouroboros-0200dcb157be0e62eb495bc870cdac03130c2aa1.tar.gz ouroboros-0200dcb157be0e62eb495bc870cdac03130c2aa1.zip |
Merged in dstaesse/ouroboros/be-dealloc-full (pull request #105)
lib, ipcpd, irmd: fixes deallocation and fast path
Diffstat (limited to 'src/irmd')
-rw-r--r-- | src/irmd/main.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/irmd/main.c b/src/irmd/main.c index f1993960..4ee6399d 100644 --- a/src/irmd/main.c +++ b/src/irmd/main.c @@ -1076,6 +1076,8 @@ static int flow_dealloc(int port_id) rw_lock_rdlock(&instance->state_lock); rw_lock_wrlock(&instance->flows_lock); + bmp_release(instance->port_ids, port_id); + e = get_port_map_entry(port_id); if (e == NULL) { rw_lock_unlock(&instance->flows_lock); @@ -1087,8 +1089,6 @@ static int flow_dealloc(int port_id) list_del(&e->next); - bmp_release(instance->port_ids, port_id); - ret = ipcp_flow_dealloc(n_1_pid, port_id); rw_lock_unlock(&instance->flows_lock); @@ -1217,8 +1217,6 @@ static int flow_dealloc_ipcp(int port_id) return 0; } - bmp_release(instance->port_ids, port_id); - list_del(&e->next); rw_lock_unlock(&instance->flows_lock); |