Merge pull request #534 from mmichal10/unlock-remapped

Unlock cachelines after failed remap
This commit is contained in:
Robert Baldyga 2021-07-06 16:18:55 +02:00 committed by GitHub
commit b5ed58f597
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -328,6 +328,7 @@ static void ocf_engine_map_hndl_error(struct ocf_cache *cache,
{ {
uint32_t i; uint32_t i;
struct ocf_map_info *entry; struct ocf_map_info *entry;
struct ocf_alock *alock = ocf_cache_line_concurrency(req->cache);
for (i = 0; i < req->core_line_count; i++) { for (i = 0; i < req->core_line_count; i++) {
entry = &(req->map[i]); entry = &(req->map[i]);
@ -352,6 +353,10 @@ static void ocf_engine_map_hndl_error(struct ocf_cache *cache,
ocf_metadata_end_collision_shared_access(cache, ocf_metadata_end_collision_shared_access(cache,
entry->coll_idx); entry->coll_idx);
ocf_alock_mark_index_locked(alock, req, i, false);
ocf_cache_line_unlock_wr(alock, entry->coll_idx);
break; break;
default: default: