Put a queue before calling cleaner completion callback

This ensures that cleaner queue will not be changed
by starting another cleaning iteration before we put it.

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
Robert Baldyga 2019-12-18 20:49:56 +01:00
parent c8e72ad98d
commit 32fd371583

View File

@ -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_mngt_cache_unlock(cache);
cleaner->end(cleaner, interval);
ocf_queue_put(cleaner->io_queue);
cleaner->end(cleaner, interval);
}
void ocf_cleaner_run(ocf_cleaner_t cleaner, ocf_queue_t queue)