Add missing collision page lock in cleaner
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
This commit is contained in:
parent
fe56d719d7
commit
012438c279
@ -340,8 +340,10 @@ static int _ocf_cleaner_update_metadata(struct ocf_request *req)
|
|||||||
&core_id, &req->part_id);
|
&core_id, &req->part_id);
|
||||||
req->core = &cache->core[core_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,
|
set_cache_line_clean(cache, 0, ocf_line_end_sector(cache), req,
|
||||||
i);
|
i);
|
||||||
|
ocf_metadata_end_collision_shared_access(cache, cache_line);
|
||||||
}
|
}
|
||||||
|
|
||||||
ocf_metadata_flush_do_asynch(cache, req, _ocf_cleaner_metadata_io_end);
|
ocf_metadata_flush_do_asynch(cache, req, _ocf_cleaner_metadata_io_end);
|
||||||
|
Loading…
Reference in New Issue
Block a user