]> xenbits.xensource.com Git - osstest.git/commitdiff
ts-hosts-allocate-Executive: Fix handling of failed preps for same sharing
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 3 Nov 2017 17:40:42 +0000 (17:40 +0000)
committerIan Jackson <iwj@xenproject.org>
Fri, 2 Oct 2020 15:49:13 +0000 (16:49 +0100)
This code was previously unreachable.  It ought to be executed when
all the shares are allocatable or prep: in that case, we can unshare
and re-share the host.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
ts-hosts-allocate-Executive

index 78b94c6da1e31bb8ff0a57268b4cc2f6b82f69d1..2c18a739f54013489778108bfcf6a7dc60e35056 100755 (executable)
@@ -1044,12 +1044,11 @@ sub actual_allocation ($) {
                # now-dead task.  If so that share will become allocatable
                # (and therefore not be counted in `ntasks') in due course.
                return undef;
-
-                # someone was preparing it but they aren't any more
-                push @allocwarnings,
-                    "previous preparation apparently abandoned";
-                $allocatable= 1;
-            }
+           }
+           # someone was preparing it but they aren't any more
+           push @allocwarnings,
+               "previous preparation apparently abandoned";
+           $allocatable= 1;
         }
     }