Use cline concurrency ctx instead of cache
Cacheline concurrency functions have their interface changed so that the cacheline concurrency private context is explicitly on the parameter list, rather than being taken from cache->device->concurrency.cache_line. Cache pointer is no longer provided as a parameter to these functions. Cacheline concurrency context now has a pointer to cache structure (for logging purposes only). The purpose of this change is to facilitate unit testing. Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
This commit is contained in:
@@ -34,7 +34,8 @@ static void _ocf_write_wt_req_complete(struct ocf_request *req)
|
||||
ocf_engine_invalidate(req);
|
||||
} else {
|
||||
/* Unlock reqest from WRITE access */
|
||||
ocf_req_unlock_wr(req);
|
||||
ocf_req_unlock_wr(req->cache->device->concurrency.cache_line,
|
||||
req);
|
||||
|
||||
/* Complete request */
|
||||
req->complete(req, req->info.core_error ? req->error : 0);
|
||||
|
Reference in New Issue
Block a user