From 31f5c7d4fa4226d3339b25569d66f8e0c9c2e34e Mon Sep 17 00:00:00 2001 From: Alex Zhuravlev Date: Mon, 4 Feb 2019 20:42:40 +0300 Subject: [PATCH] LU-11920 lod: do not reset lds_def_comp_entries as it can contain valid pointer and the buffer is refilled every time. Change-Id: I6ae043c31c8cd1414a80a48687bd784e30425553 Signed-off-by: Alex Zhuravlev Reviewed-on: https://review.whamcloud.com/34175 Tested-by: Jenkins Reviewed-by: Patrick Farrell Reviewed-by: Andreas Dilger Tested-by: Maloo Reviewed-by: Oleg Drokin --- lustre/lod/lod_internal.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/lod/lod_internal.h b/lustre/lod/lod_internal.h index 454b752..62bab33 100644 --- a/lustre/lod/lod_internal.h +++ b/lustre/lod/lod_internal.h @@ -556,7 +556,8 @@ lod_lds_buf_get(const struct lu_env *env) { struct lod_thread_info *info = lod_env_info(env); - memset(&info->lti_def_striping, 0, sizeof(info->lti_def_striping)); + info->lti_def_striping.lds_def_striping_set = 0; + info->lti_def_striping.lds_dir_def_striping_set = 0; return &info->lti_def_striping; } -- 1.8.3.1