From 3ab2815052a8779b16e7b31a13b55ce9b6486cca Mon Sep 17 00:00:00 2001 From: Danny Auble <da@llnl.gov> Date: Fri, 21 Jan 2011 20:00:28 +0000 Subject: [PATCH] ok, fix for making NoReserve work --- src/plugins/sched/backfill/backfill.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/plugins/sched/backfill/backfill.c b/src/plugins/sched/backfill/backfill.c index 37ba8ca864f..19fd342158f 100644 --- a/src/plugins/sched/backfill/backfill.c +++ b/src/plugins/sched/backfill/backfill.c @@ -458,6 +458,7 @@ static int _attempt_backfill(void) bool filter_root = false; List job_queue; job_queue_rec_t *job_queue_rec; + slurmdb_qos_rec_t *qos_ptr = NULL; int i, j, node_space_recs; struct job_record *job_ptr; struct part_record *part_ptr; @@ -693,8 +694,11 @@ static int _attempt_backfill(void) } /* - * Add reservation to scheduling table + * Add reservation to scheduling table if appropriate */ + qos_ptr = job_ptr->qos_ptr; + if (qos_ptr && (qos_ptr->flags & QOS_FLAG_NO_RESERVE)) + continue; bit_not(avail_bitmap); _add_reservation(job_ptr->start_time, end_reserve, avail_bitmap, node_space, &node_space_recs); -- GitLab