diff options
author | Adam Kwolek <adam.kwolek@intel.com> | 2011-03-10 09:57:39 +1100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-03-10 09:57:39 +1100 |
commit | b8063f0770e2a5d4a6dedc3bdc6ee114d1a7c4b7 (patch) | |
tree | 96e77e8dab23ab383ca82741a2181414cab2b11a /Assemble.c | |
parent | 3db2fdd83486c41eed7c65705f23c9ef9f8c4487 (diff) |
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>
Diffstat (limited to 'Assemble.c')
-rw-r--r-- | Assemble.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |