Adding synchronization primitives destroyers
Environment should provide calls for destroying primitives (i.e. env_mutex_destroy()) and OCF should call these functions in its cleanup paths. Signed-off-by: Firas Medini <mdnfiras@yahoo.com>
This commit is contained in:
@@ -60,6 +60,7 @@ void ocf_queue_put(ocf_queue_t queue)
|
||||
list_del(&queue->list);
|
||||
queue->ops->stop(queue);
|
||||
ocf_mngt_cache_put(queue->cache);
|
||||
env_spinlock_destroy(&queue->io_list_lock);
|
||||
env_free(queue);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user