Merge pull request #442 from arutk/cleaner_page_lock

Add missing collision page lock in cleaner
This commit is contained in:
Robert Baldyga 2021-01-21 09:25:21 +01:00 committed by GitHub
commit 7f72a9431c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -340,8 +340,10 @@ static int _ocf_cleaner_update_metadata(struct ocf_request *req)
&core_id, &req->part_id);
req->core = &cache->core[core_id];
ocf_metadata_start_collision_shared_access(cache, cache_line);
set_cache_line_clean(cache, 0, ocf_line_end_sector(cache), req,
i);
ocf_metadata_end_collision_shared_access(cache, cache_line);
}
ocf_metadata_flush_do_asynch(cache, req, _ocf_cleaner_metadata_io_end);