Introduce pass-through block stats

Signed-off-by: Sara Merzel <sara.merzel@huawei.com>
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
This commit is contained in:
Sara Merzel
2023-02-22 11:27:55 -05:00
committed by Michal Mielewczyk
parent 3ebf6e64c1
commit 835eb708b5
8 changed files with 62 additions and 0 deletions

View File

@@ -87,6 +87,10 @@ int ocf_read_pt_do(struct ocf_request *req)
/* Update statistics */
ocf_engine_update_block_stats(req);
ocf_core_stats_pt_block_update(req->core, req->part_id, req->rw,
req->byte_length);
ocf_core_stats_request_pt_update(req->core, req->part_id, req->rw,
req->info.hit_no, req->core_line_count);