nhit promotion policy implementation
Signed-off-by: Jan Musial <jan.musial@intel.com>
This commit is contained in:
@@ -60,8 +60,6 @@ static void _ocf_discard_core_complete(struct ocf_io *io, int error)
|
||||
|
||||
OCF_DEBUG_RQ(req, "Core DISCARD Completion");
|
||||
|
||||
ocf_promotion_req_purge(req->cache->promotion_policy, req);
|
||||
|
||||
_ocf_discard_complete_req(req, error);
|
||||
|
||||
ocf_io_put(io);
|
||||
@@ -85,6 +83,8 @@ static int _ocf_discard_core(struct ocf_request *req)
|
||||
|
||||
ocf_volume_submit_discard(io);
|
||||
|
||||
ocf_promotion_req_purge(req->cache->promotion_policy, req);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user