diff options
author | Guoqing Jiang <guoqing.jiang@cloud.ionos.com> | 2019-12-23 12:48:56 +0300 |
---|---|---|
committer | Song Liu <songliubraving@fb.com> | 2020-01-13 22:44:09 +0300 |
commit | 3938f5fb82aedbf39792ffee448c61c819e6ab38 (patch) | |
tree | 23865cd56308cae6332a4239f3e1ede1751a3311 /drivers/md/md.h | |
parent | 11d3a9f65018c9fb3d4f2032aec76af2ba98431c (diff) | |
download | linux-3938f5fb82aedbf39792ffee448c61c819e6ab38.tar.xz |
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.h | 1 |
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 { |