core: removed invalid lock release introduced by commit f775e4000e
authorDaniel-Constantin Mierla <miconda@gmail.com>
Tue, 3 Apr 2018 16:03:55 +0000 (18:03 +0200)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Tue, 3 Apr 2018 16:03:55 +0000 (18:03 +0200)
src/core/receive.c

index 27d4bd9..2b8b2c7 100644 (file)
@@ -395,11 +395,10 @@ int receive_msg(char *buf, unsigned int len, struct receive_info *rcv_info)
                                        rec_lock_set_get(ksr_route_locks_set, cidlockidx);
                                        ret = keng->froute(msg, CORE_ONREPLY_ROUTE, NULL, NULL);
                                        rec_lock_set_release(ksr_route_locks_set, cidlockidx);
                                        rec_lock_set_get(ksr_route_locks_set, cidlockidx);
                                        ret = keng->froute(msg, CORE_ONREPLY_ROUTE, NULL, NULL);
                                        rec_lock_set_release(ksr_route_locks_set, cidlockidx);
-                                       sr_kemi_act_ctx_set(bctx);
                                } else {
                                        ret = keng->froute(msg, CORE_ONREPLY_ROUTE, NULL, NULL);
                                } else {
                                        ret = keng->froute(msg, CORE_ONREPLY_ROUTE, NULL, NULL);
-                                       rec_lock_set_release(ksr_route_locks_set, cidlockidx);
                                }
                                }
+                               sr_kemi_act_ctx_set(bctx);
                        } else {
                                if(unlikely(cidlockset)) {
                                        rec_lock_set_get(ksr_route_locks_set, cidlockidx);
                        } else {
                                if(unlikely(cidlockset)) {
                                        rec_lock_set_get(ksr_route_locks_set, cidlockidx);