From: Yu Kuai yukuai3@huawei.com
hulk inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I6T6VY CVE: NA
--------------------------------
Struct mddev is just used inside raid, just in case that md_mod is compiled from new kernel, and raid1/raid10 or other out-of-tree raid are compiled from old kernel.
Signed-off-by: Yu Kuai yukuai3@huawei.com Reviewed-by: Hou Tao houtao1@huawei.com Signed-off-by: Yongqiang Liu liuyongqiang13@huawei.com --- drivers/md/md.h | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/drivers/md/md.h b/drivers/md/md.h index fe275ec34647..ea67637f7082 100644 --- a/drivers/md/md.h +++ b/drivers/md/md.h @@ -510,10 +510,12 @@ struct mddev {
bool has_superblocks:1;
+#ifndef __GENKSYMS__ /* Used to synchronize idle and frozen for action_store() */ struct mutex sync_mutex; /* The sequence number for sync thread */ atomic_t sync_seq; +#endif };
enum recovery_flags {