提交 d0acf215 编写于 作者: Y Yu Kuai 提交者: Yongqiang Liu

md: fix kabi broken in struct mddev

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: NYu Kuai <yukuai3@huawei.com>
Reviewed-by: NHou Tao <houtao1@huawei.com>
Signed-off-by: NYongqiang Liu <liuyongqiang13@huawei.com>
上级 e990c814
...@@ -510,10 +510,12 @@ struct mddev { ...@@ -510,10 +510,12 @@ struct mddev {
bool has_superblocks:1; bool has_superblocks:1;
#ifndef __GENKSYMS__
/* Used to synchronize idle and frozen for action_store() */ /* Used to synchronize idle and frozen for action_store() */
struct mutex sync_mutex; struct mutex sync_mutex;
/* The sequence number for sync thread */ /* The sequence number for sync thread */
atomic_t sync_seq; atomic_t sync_seq;
#endif
}; };
enum recovery_flags { enum recovery_flags {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册