Add missing env_rwsem_up_write() in ocf_cleaner_run()

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
Robert Baldyga 2019-03-22 15:51:40 +01:00
parent 82fe4c04ee
commit ae1f600b57

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;
}