From a0054a609f1a47e382cdfd6514b5ed1a6f5ff4ff Mon Sep 17 00:00:00 2001 From: Danny Auble <da@llnl.gov> Date: Mon, 6 Jun 2005 19:30:35 +0000 Subject: [PATCH] changed job queue to be FIFO instead of starts at the beginning and kills at the end. --- src/plugins/select/bluegene/bgl_job_run.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/plugins/select/bluegene/bgl_job_run.c b/src/plugins/select/bluegene/bgl_job_run.c index fd1c70d346c..6f373da9bde 100644 --- a/src/plugins/select/bluegene/bgl_job_run.c +++ b/src/plugins/select/bluegene/bgl_job_run.c @@ -480,15 +480,10 @@ static void _part_op(bgl_update_t *bgl_update_ptr) && ((bgl_update_list = list_create(_bgl_list_del)) == NULL)) fatal("malloc failure in start_job/list_create"); - if (bgl_update_ptr->op == START_OP) { - /* partition boot is fast, put at front of the queue */ - if (list_push(bgl_update_list, bgl_update_ptr) == NULL) - fatal("malloc failure in _part_op/list_push"); - } else { - /* job kill and partition free are slow, put at end of queue */ - if (list_enqueue(bgl_update_list, bgl_update_ptr) == NULL) - fatal("malloc failure in _part_op/list_enqueue"); - } + /* push job onto queue in a FIFO */ + if (list_push(bgl_update_list, bgl_update_ptr) == NULL) + fatal("malloc failure in _part_op/list_push"); + if (agent_cnt > MAX_AGENT_COUNT) { /* already running an agent */ slurm_mutex_unlock(&agent_cnt_mutex); return; -- GitLab