Skip to content
Snippets Groups Projects
Commit 787dcbf1 authored by Morris Jette's avatar Morris Jette
Browse files

Merge branch 'slurm-15.08'

Conflicts:
	src/plugins/sched/backfill/backfill.c
parents 743cabc7 efd9d35e
No related branches found
No related tags found
No related merge requests found
......@@ -140,6 +140,8 @@ documents those changes that are of interest to users and administrators.
-- Remove historical presentations and design notes. Only distribute
maintained doc/html and doc/man directories.
-- Remove duplicate xmalloc() in task/cgroup plugin.
-- Backfill scheduler to validate correct job partition for job submitted to
multiple partitions.
* Changes in Slurm 15.08.8
==========================
......
......@@ -962,7 +962,10 @@ static int _attempt_backfill(void)
}
job_ptr = job_queue_rec->job_ptr;
part_ptr = job_queue_rec->part_ptr;
job_ptr->part_ptr = part_ptr;
mcs_select = slurm_mcs_get_select(job_ptr);
/* With bf_continue configured, the original job could have
* been cancelled and purged. Validate pointer here. */
if ((job_ptr->magic != JOB_MAGIC) ||
......@@ -1033,7 +1036,6 @@ static int _attempt_backfill(void)
orig_start_time = job_ptr->start_time;
orig_time_limit = job_ptr->time_limit;
part_ptr = job_queue_rec->part_ptr;
xfree(job_queue_rec);
next_task:
......
......@@ -832,7 +832,6 @@ static int _task_cgroup_cpuset_dist_block(
int spec_thread_cnt = 0;
bitstr_t *spec_threads = NULL;
uint32_t *thread_idx;
uint32_t core_idx;
bool core_fcyclic, core_block;
......@@ -854,7 +853,7 @@ static int _task_cgroup_cpuset_dist_block(
}
if ((hwloc_compare_types(hwtype, HWLOC_OBJ_PU) == 0) && !core_block) {
thread_idx = xmalloc(ncores * sizeof(uint32_t));
uint32_t *thread_idx = xmalloc(ncores * sizeof(uint32_t));
ntskip = taskid;
npdist = job->cpus_per_task;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment