From: Ian Jackson <ian.jackson@eu.citrix.com>
To: xen-devel@lists.xenproject.org
Cc: Ian Jackson <Ian.Jackson@eu.citrix.com>
Subject: [OSSTEST PATCH 1/3] ms-planner: Ignore freely-shareable resources
Date: Thu, 6 Oct 2016 13:14:23 +0100 [thread overview]
Message-ID: <1475756065-5242-1-git-send-email-ian.jackson@eu.citrix.com> (raw)
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
next reply other threads:[~2016-10-06 12:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-06 12:14 Ian Jackson [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1475756065-5242-1-git-send-email-ian.jackson@eu.citrix.com \
--to=ian.jackson@eu.citrix.com \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).