Merge pull request #871 from mmichal10/deinit-d2c-refcnt

Add missing d2c refcnt deinit
This commit is contained in:
Robert Baldyga 2025-03-26 08:21:25 +01:00 committed by GitHub
commit 11c5a45bff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2327,6 +2327,7 @@ static void _ocf_mngt_cache_dealloc(void *priv)
env_refcnt_deinit(&cache->refcnt.cache); env_refcnt_deinit(&cache->refcnt.cache);
env_refcnt_deinit(&cache->refcnt.dirty); env_refcnt_deinit(&cache->refcnt.dirty);
env_refcnt_deinit(&cache->refcnt.metadata); env_refcnt_deinit(&cache->refcnt.metadata);
env_refcnt_deinit(&cache->refcnt.d2c);
for (i = 0; i < OCF_USER_IO_CLASS_MAX; i++) for (i = 0; i < OCF_USER_IO_CLASS_MAX; i++)
env_refcnt_deinit(&cache->user_parts[i].cleaning.counter); env_refcnt_deinit(&cache->user_parts[i].cleaning.counter);