]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
imsm: update metadata immediately on "add spare" events
authorDan Williams <dan.j.williams@intel.com>
Tue, 28 Oct 2008 17:55:31 +0000 (10:55 -0700)
committerDan Williams <dan.j.williams@intel.com>
Tue, 28 Oct 2008 17:55:31 +0000 (10:55 -0700)
...without this the spare record is delayed until the next metadata
event.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
super-intel.c

index e247b3bf29cc692dfec21fb441687454818af619..17c22f5653b7ffe03e9acaec4bae4e57cae96acf 100644 (file)
@@ -3211,6 +3211,8 @@ static void imsm_process_update(struct supertype *st,
                 * being added */
                if (super->add) {
                        struct active_array *a;
+
+                       super->updates_pending++;
                        for (a = st->arrays; a; a = a->next)
                                a->check_degraded = 1;
                }