Skip to content
Snippets Groups Projects
Commit 07ca5f61 authored by Danny Auble's avatar Danny Auble
Browse files

BGQ - fixed race condition when using the --reboot option with salloc etc.

parent a8972d89
No related branches found
No related tags found
No related merge requests found
......@@ -1731,7 +1731,8 @@ extern int select_p_job_ready(struct job_record *job_ptr)
if (job_id != job_ptr->job_id) {
rc = 0;
} else if ((uid == job_ptr->user_id)
} else if (!bg_record->free_cnt
&& (uid == job_ptr->user_id)
&& (bg_record->state == BG_BLOCK_INITED)) {
/* Clear the state just incase we
* missed it somehow. */
......
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