aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/md.h
diff options
context:
space:
mode:
authorGuoqing Jiang <guoqing.jiang@cloud.ionos.com>2019-12-23 10:48:56 +0100
committerSong Liu <songliubraving@fb.com>2020-01-13 11:44:09 -0800
commit3938f5fb82aedbf39792ffee448c61c819e6ab38 (patch)
tree23865cd56308cae6332a4239f3e1ede1751a3311 /drivers/md/md.h
parentmd: prepare for enable raid1 io serialization (diff)
downloadlinux-dev-3938f5fb82aedbf39792ffee448c61c819e6ab38.tar.xz
linux-dev-3938f5fb82aedbf39792ffee448c61c819e6ab38.zip
md: add serialize_policy sysfs node for raid1
With the new sysfs node, we can use it to control if raid1 array wants io serialization or not. So mddev_create_serial_pool and mddev_destroy_serial_pool are called in serialize_policy_store to enable or disable the serialization. Signed-off-by: Guoqing Jiang <guoqing.jiang@cloud.ionos.com> Signed-off-by: Song Liu <songliubraving@fb.com>
Diffstat (limited to 'drivers/md/md.h')
-rw-r--r--drivers/md/md.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/md.h b/drivers/md/md.h
index de04a8d3a67a..f51a3afaee1b 100644
--- a/drivers/md/md.h
+++ b/drivers/md/md.h
@@ -494,6 +494,7 @@ struct mddev {
bool has_superblocks:1;
bool fail_last_dev:1;
+ bool serialize_policy:1;
};
enum recovery_flags {