Merge pull request #329 from robertbaldyga/fix-cleaner-queue-change-before-put
Put a queue before calling cleaner completion callback
This commit is contained in:
commit
a074026773
@ -109,9 +109,8 @@ 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_mngt_cache_unlock(cache);
|
ocf_mngt_cache_unlock(cache);
|
||||||
cleaner->end(cleaner, interval);
|
|
||||||
|
|
||||||
ocf_queue_put(cleaner->io_queue);
|
ocf_queue_put(cleaner->io_queue);
|
||||||
|
cleaner->end(cleaner, interval);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ocf_cleaner_run(ocf_cleaner_t cleaner, ocf_queue_t queue)
|
void ocf_cleaner_run(ocf_cleaner_t cleaner, ocf_queue_t queue)
|
||||||
|
Loading…
Reference in New Issue
Block a user