FIX: Block reshaped array monitoring

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>
This commit is contained in:
Adam Kwolek 2011-03-10 09:57:39 +11:00 committed by NeilBrown
parent 3db2fdd834
commit b8063f0770
1 changed files with 3 additions and 0 deletions

View File

@ -1519,6 +1519,9 @@ int assemble_container_content(struct supertype *st, int mdfd,
if (sysfs_set_array(content, md_get_version(mdfd)) != 0)
return 1;
if (content->reshape_active)
block_subarray(content);
if (sra)
sysfs_free(sra);