Merge pull request #319 from mmichal10/fix-ioclass-stats-for-cache

Reset initial ioclass stats value when retrieving.
This commit is contained in:
Adam Rutkowski 2019-10-29 15:55:02 +01:00 committed by GitHub
commit d8a01e359e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -289,7 +289,7 @@ int ocf_stats_collect_part_cache(ocf_cache_t cache, ocf_part_id_t part_id,
struct ocf_stats_blocks *blocks) struct ocf_stats_blocks *blocks)
{ {
struct io_class_stats_context ctx; struct io_class_stats_context ctx;
struct ocf_stats_io_class s; struct ocf_stats_io_class s = {};
int result = 0; int result = 0;
OCF_CHECK_NULL(cache); OCF_CHECK_NULL(cache);