Skip to content
Browse files

retag of v1.0.17

  • Loading branch information...
2 parents c317f97 + 73eb8d0 commit 7871373670b7f2353eb984c193a34aa7ebc40e2f @jette jette committed Dec 12, 2006
Showing with 8 additions and 6 deletions.
  1. +8 −6 src/plugins/sched/backfill/backfill.c
View
14 src/plugins/sched/backfill/backfill.c
@@ -304,12 +304,14 @@ _attempt_backfill(struct part_record *part_ptr)
goto cleanup;
i = list_count(run_job_list) + cg_hung;
- if ( (i == 0) || (i > MAX_JOB_CNT) )
- goto cleanup; /* no running jobs or already have many */
- if (list_is_empty(pend_job_list))
- goto cleanup; /* no pending jobs */
- if (min_pend_job_size > part_specs.idle_node_cnt)
- goto cleanup; /* not enough free nodes for any pending job */
+ /* Do not try to backfill if
+ * we already have many running jobs,
+ * there are no pending jobs, OR
+ * there are insufficient idle nodes to start any pending jobs */
+ if ((i > MAX_JOB_CNT)
+ || list_is_empty(pend_job_list)
+ || (min_pend_job_size > part_specs.idle_node_cnt))
+ goto cleanup;
list_sort(pend_job_list, _sort_by_prio);
list_sort(run_job_list, _sort_by_end);

0 comments on commit 7871373

Please sign in to comment.
Something went wrong with that request. Please try again.