xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [OSSTEST PATCH 1/3] ms-planner: Ignore freely-shareable resources
@ 2016-10-06 12:14 Ian Jackson
  2016-10-06 12:14 ` [OSSTEST PATCH 2/3] ms-planner: Improve an error message Ian Jackson
  2016-10-06 12:14 ` [OSSTEST PATCH 3/3] sg-report-flight: Avoid some warnings when reporting unexecuted jobs Ian Jackson
  0 siblings, 2 replies; 3+ messages in thread
From: Ian Jackson @ 2016-10-06 12:14 UTC (permalink / raw)
  To: xen-devel; +Cc: Ian Jackson

Resource shares with no resource_sharing entry are freely shareable
and do not need the planning system.  Indeed, they currently break the
planner.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
---
 ms-planner | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/ms-planner b/ms-planner
index bce6e13..8106544 100755
--- a/ms-planner
+++ b/ms-planner
@@ -71,6 +71,12 @@ sub allocations ($$) {
                        ON owntaskid = taskid
 		    WHERE NOT (tasks.type='magic' AND
                                tasks.refkey='allocatable')
+                      AND NOT (resources.restype like 'share-%'
+                           AND NOT EXISTS (
+ SELECT 1 FROM resource_sharing sh
+         WHERE sh.restype = substring(resources.restype from 7)
+           AND sh.resname = resources.resname
+                                          ))
 END
         $resources_q->execute();
 	while (my $row= $resources_q->fetchrow_hashref()) {
-- 
2.1.4


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-10-06 12:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-06 12:14 [OSSTEST PATCH 1/3] ms-planner: Ignore freely-shareable resources Ian Jackson
2016-10-06 12:14 ` [OSSTEST PATCH 2/3] ms-planner: Improve an error message Ian Jackson
2016-10-06 12:14 ` [OSSTEST PATCH 3/3] sg-report-flight: Avoid some warnings when reporting unexecuted jobs Ian Jackson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).