Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ocf_cleaner_refcnt_unfreeze bug fix #859

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions src/mngt/ocf_mngt_core.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright(c) 2012-2022 Intel Corporation
* Copyright(c) 2024 Huawei Technologies
* Copyright(c) 2024-2025 Huawei Technologies
* SPDX-License-Identifier: BSD-3-Clause
*/

Expand Down Expand Up @@ -643,7 +643,9 @@ static void ocf_mngt_cache_remove_core_finish(ocf_pipeline_t pipeline,
context->core_name);
}

ocf_cleaner_refcnt_unfreeze(cache);
if (ocf_cache_is_device_attached(cache)) {
ocf_cleaner_refcnt_unfreeze(cache);
}

context->cmpl(context->priv, error);

Expand Down Expand Up @@ -826,7 +828,9 @@ static void ocf_mngt_cache_detach_core_finish(ocf_pipeline_t pipeline,
context->core_name);
}

ocf_cleaner_refcnt_unfreeze(context->cache);
if (ocf_cache_is_device_attached(cache)) {
ocf_cleaner_refcnt_unfreeze(cache);
}

context->cmpl(context->priv, error);

Expand Down
Loading