When array under reshape is assembled it has to be disabled from
monitoring as soon as possible. It can occur that this is i.e second
array in container and mdmon is loaded already.
Lack of blocking monitoring can cause change array state to active,
and reshape continuation will be not possible.
Signed-off-by: Adam Kwolek <adam.kwolek@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
if (sysfs_set_array(content, md_get_version(mdfd)) != 0)
return 1;
+ if (content->reshape_active)
+ block_subarray(content);
+
if (sra)
sysfs_free(sra);