Merge pull request #83 from robertbaldyga/add-missing-rwsem-up

Add missing env_rwsem_up_write() in ocf_cleaner_run()
This commit is contained in:
Adam Rutkowski 2019-03-22 15:58:30 +01:00 committed by GitHub
commit 6ac6081b25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -138,6 +138,7 @@ void ocf_cleaner_run(ocf_cleaner_t cleaner, ocf_queue_t queue)
}
if (_ocf_cleaner_run_check_dirty_inactive(cache)) {
env_rwsem_up_write(&cache->lock);
cleaner->end(cleaner, SLEEP_TIME_MS);
return;
}