fix: correct metadata's update communication

The problem occurs when array under migration is assembled incrementally.
st->update_tail is not initialized in function
assemble_container_content() and during reshape
the checkpoint information in metadata is not being updated.

The value of st->update_tail is now initialized in function
assemble_container_content() and during reshape the checkpoint
information in metadata is being updated correctly on all disks.

Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
Lukasz Dorau 2011-11-18 15:34:33 +01:00 committed by NeilBrown
parent 464d40e80a
commit 7728e1c635
1 changed files with 3 additions and 0 deletions

View File

@ -1585,6 +1585,9 @@ int assemble_container_content(struct supertype *st, int mdfd,
if (!mdmon_running(st->container_dev))
start_mdmon(st->container_dev);
ping_monitor_by_id(st->container_dev);
if (mdmon_running(st->container_dev) &&
st->update_tail == NULL)
st->update_tail = &st->updates;
}
err = Grow_continue(mdfd, st, content, backup_file,