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

Continuation of commit 58a2f450.

Looks like there were other places not locked.

Bug 3515
parent f7a24285
No related branches found
No related tags found
No related merge requests found
...@@ -4804,6 +4804,7 @@ extern uint64_t gres_plugin_get_job_value_by_type(List job_gres_list, ...@@ -4804,6 +4804,7 @@ extern uint64_t gres_plugin_get_job_value_by_type(List job_gres_list,
if (job_gres_list == NULL) if (job_gres_list == NULL)
return NO_VAL64; return NO_VAL64;
slurm_mutex_lock(&gres_context_lock);
gres_name_type_id = _build_id(gres_name_type); gres_name_type_id = _build_id(gres_name_type);
gres_val = NO_VAL64; gres_val = NO_VAL64;
...@@ -4817,6 +4818,8 @@ extern uint64_t gres_plugin_get_job_value_by_type(List job_gres_list, ...@@ -4817,6 +4818,8 @@ extern uint64_t gres_plugin_get_job_value_by_type(List job_gres_list,
} }
list_iterator_destroy(job_gres_iter); list_iterator_destroy(job_gres_iter);
slurm_mutex_unlock(&gres_context_lock);
return gres_val; return gres_val;
} }
......
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