Don't modify req->error for IOs outside io engines
`req->error` should be modified by the request's owner only; hence, if the request has been allocated to handle IO (i.e. it's not an internal OCF request) only engines can change it Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
This commit is contained in:
@@ -462,7 +462,6 @@ static void _raw_ram_flush_do_asynch_io_complete(ocf_cache_t cache,
|
||||
OCF_DEBUG_MSG(cache, "Asynchronous flushing complete");
|
||||
|
||||
/* Call metadata flush completed call back */
|
||||
ctx->req->error |= ctx->error;
|
||||
ctx->complete(ctx->req, ctx->error);
|
||||
|
||||
env_free(ctx);
|
||||
|
||||
Reference in New Issue
Block a user