Fix leaking cache references
Signed-off-by: Jan Musial <jan.musial@intel.com>
This commit is contained in:
parent
e9d5a9c658
commit
4a20ce9c25
@ -108,7 +108,7 @@ static void ocf_cleaner_run_complete(ocf_cleaner_t cleaner, uint32_t interval)
|
|||||||
{
|
{
|
||||||
ocf_cache_t cache = ocf_cleaner_get_cache(cleaner);
|
ocf_cache_t cache = ocf_cleaner_get_cache(cleaner);
|
||||||
|
|
||||||
ocf_async_unlock(&cache->lock);
|
ocf_mngt_cache_unlock(cache);
|
||||||
cleaner->end(cleaner, interval);
|
cleaner->end(cleaner, interval);
|
||||||
|
|
||||||
ocf_queue_put(cleaner->io_queue);
|
ocf_queue_put(cleaner->io_queue);
|
||||||
|
Loading…
Reference in New Issue
Block a user