Fix the bug 57/235557/1
authorYoungHun Kim <yh8004.kim@samsung.com>
Fri, 5 Jun 2020 10:48:05 +0000 (19:48 +0900)
committerYoungHun Kim <yh8004.kim@samsung.com>
Fri, 5 Jun 2020 10:48:16 +0000 (19:48 +0900)
Change-Id: I454662c03ced004e40dca59e854755d2a9bf5481

src/daemon/mm_resource_manager_daemon_priv.c
src/lib/mm_resource_manager_priv.c

index 8c00742..9f13d31 100644 (file)
@@ -553,7 +553,7 @@ static GArray *__handle_acquire_requests(mm_resource_manager_dmn_p manager,
 
                                        mm_resource_manager_backend_release(type);
 
-                                       MM_RM_INFO("Resource %s is released (%d) in RM %"PRIu64" available volume %d", res_name,
+                                       MM_RM_INFO("Resource %s would be released (is acquired %d) in RM %"PRIu64" available volume %d", res_name,
                                                i_mgr->resources[type]->is_acquired, _mm_rm_hash64(i_mgr->id), conf->max_volume[type]);
                                }
                        }
@@ -805,10 +805,8 @@ static gboolean __wait_for_release_cb_sync(mm_resource_manager_id id)
                goto out;
        }
 
-       if (id != _mm_rm_hash64(recv_id)) {
-               MM_RM_ERROR("Sync is received from wrong client #%"PRIu64, id);
-               goto out;
-       }
+       if (id != _mm_rm_hash64(recv_id))
+               MM_RM_WARNING("Sync is received from wrong client #%"PRIu64, id);
 
        ret = __poll(sync);
 
index d3d73c4..2ff6952 100644 (file)
@@ -704,7 +704,7 @@ static gboolean __mark_resource_for_release(GPtrArray *resources, int index,
                break;
        case MM_RESOURCE_MANAGER_RES_STATE_FOR_RELEASE:
                MM_RM_DEBUG("Resource %p is already marked", resource);
-               return FALSE;
+               break;
        }
 
        return TRUE;