Set mngt queue to null if couldn't start thread

This prevents attempt to deinitialize the queue for the second time in
the start rollback

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
Signed-off-by: Robert Baldyga <robert.baldyga@huawei.com>
This commit is contained in:
Michal Mielewczyk 2023-10-03 07:37:52 +02:00 committed by Robert Baldyga
parent 72594436ce
commit 6a409a0064

View File

@ -2061,6 +2061,7 @@ static int _cache_mngt_start_queues(ocf_cache_t cache)
cache_priv->mngt_queue, CAS_CPUS_ALL); cache_priv->mngt_queue, CAS_CPUS_ALL);
if (result) { if (result) {
ocf_queue_put(cache_priv->mngt_queue); ocf_queue_put(cache_priv->mngt_queue);
cache_priv->mngt_queue = NULL;
goto err; goto err;
} }