Make management API asynchronous
NOTE: This patch only changes API that pretends to be asynchronous. Most of management operations are still performed synchronously. The real asynchronism will be introduced in the next patches. Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
@@ -157,7 +157,7 @@ static void start_cache_req(struct ocf_request *req)
|
||||
|
||||
req->d2c = 1;
|
||||
if (env_atomic_read(&cache->attached)) {
|
||||
req->d2c = 0 ;
|
||||
req->d2c = 0;
|
||||
env_atomic_inc(&cache->pending_cache_requests);
|
||||
if (!env_atomic_read(&cache->attached)) {
|
||||
req->d2c = 1;
|
||||
|
Reference in New Issue
Block a user