Merge pull request #1173 from robertbaldyga/rm-priv-after-cleaner-stop

Wait for cleaner thread completion before destroying priv
This commit is contained in:
Robert Baldyga 2022-04-07 14:25:51 +02:00 committed by GitHub
commit d1ba73166e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -238,7 +238,7 @@ void cas_kick_cleaner_thread(ocf_cleaner_t c)
void cas_stop_cleaner_thread(ocf_cleaner_t c)
{
struct cas_thread_info *info = ocf_cleaner_get_priv(c);
ocf_cleaner_set_priv(c, NULL);
_cas_stop_thread(info);
ocf_cleaner_set_priv(c, NULL);
}