aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid1.c
diff options
context:
space:
mode:
authorGuoqing Jiang <guoqing.jiang@cloud.ionos.com>2019-12-23 10:48:57 +0100
committerSong Liu <songliubraving@fb.com>2020-01-13 11:44:09 -0800
commitde31ee949739aba9ce7dbb8b10e72c6fce0e76c7 (patch)
tree8067ef41f74a18c1d2d841d0b82606a629ce11d8 /drivers/md/raid1.c
parentmd: add serialize_policy sysfs node for raid1 (diff)
downloadlinux-dev-de31ee949739aba9ce7dbb8b10e72c6fce0e76c7.tar.xz
linux-dev-de31ee949739aba9ce7dbb8b10e72c6fce0e76c7.zip
md: reorgnize mddev_create/destroy_serial_pool
So far, IO serialization is used for two scenarios: 1. raid1 which enables write-behind mode, and there is rdev in the array which is multi-queue device and flaged with writemostly. 2. IO serialization is enabled or disabled by change serialize_policy. So introduce rdev_need_serial to check the first scenario. And for 1, IO serialization is enabled automatically while 2 is controlled manually. And it is possible that both scenarios are true, so for create serial pool, rdev/rdevs_init_serial should be separate from check if the pool existed or not. Then for destroy pool, we need to check if the pool is needed by other rdevs due to the first scenario. Signed-off-by: Guoqing Jiang <guoqing.jiang@cloud.ionos.com> Signed-off-by: Song Liu <songliubraving@fb.com>
Diffstat (limited to 'drivers/md/raid1.c')
0 files changed, 0 insertions, 0 deletions