diff options
author | Xiao Ni <xni@redhat.com> | 2024-05-22 10:50:40 +0200 |
---|---|---|
committer | Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com> | 2024-05-24 10:04:14 +0200 |
commit | f79f7189aa25b9da51736f2c578a51c2c4fe7706 (patch) | |
tree | ea53924104f6d46bc9d4446e57530fb8d8c494f4 /Grow.c | |
parent | mdadm: Start update_opt from 0 (diff) | |
download | mdadm-f79f7189aa25b9da51736f2c578a51c2c4fe7706.tar.xz mdadm-f79f7189aa25b9da51736f2c578a51c2c4fe7706.zip |
Don't control reshape speed in daemon
It tries to set the max sync speed in reshape. This should be done by
administrators by control interfaces /proc/sys/dev/raid/speed_limit_max/min.
Signed-off-by: Xiao Ni <xni@redhat.com>
Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Diffstat (limited to 'Grow.c')
-rw-r--r-- | Grow.c | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -4488,7 +4488,6 @@ int child_monitor(int afd, struct mdinfo *sra, struct reshape *reshape, */ char *buf; int degraded = -1; - unsigned long long speed; unsigned long long suspend_point, array_size; unsigned long long backup_point, wait_point; unsigned long long reshape_completed; @@ -4544,10 +4543,6 @@ int child_monitor(int afd, struct mdinfo *sra, struct reshape *reshape, if (posix_memalign((void**)&buf, 4096, disks * chunk)) /* Don't start the 'reshape' */ return 0; - if (reshape->before.data_disks == reshape->after.data_disks) { - sysfs_get_ll(sra, NULL, "sync_speed_min", &speed); - sysfs_set_num(sra, NULL, "sync_speed_min", 200000); - } if (increasing) { array_size = sra->component_size * reshape->after.data_disks; @@ -4680,8 +4675,6 @@ int child_monitor(int afd, struct mdinfo *sra, struct reshape *reshape, sysfs_set_num(sra, NULL, "suspend_lo", 0); sysfs_set_num(sra, NULL, "sync_min", 0); - if (reshape->before.data_disks == reshape->after.data_disks) - sysfs_set_num(sra, NULL, "sync_speed_min", speed); free(buf); return done; } |