Skip to content
Snippets Groups Projects
Commit 6aa78688 authored by David Bigagli's avatar David Bigagli
Browse files

Fix slurmstepd lock when job terminates inside the infiniband

network traffic accounting plugin.
parent ad5745e7
No related branches found
No related tags found
No related merge requests found
...@@ -205,8 +205,6 @@ extern int acct_gather_profile_fini(void) ...@@ -205,8 +205,6 @@ extern int acct_gather_profile_fini(void)
if (!g_context) if (!g_context)
goto done; goto done;
init_run = false;
for (i=0; i < PROFILE_CNT; i++) { for (i=0; i < PROFILE_CNT; i++) {
switch (i) { switch (i) {
case PROFILE_ENERGY: case PROFILE_ENERGY:
...@@ -229,6 +227,7 @@ extern int acct_gather_profile_fini(void) ...@@ -229,6 +227,7 @@ extern int acct_gather_profile_fini(void)
} }
rc = plugin_context_destroy(g_context); rc = plugin_context_destroy(g_context);
init_run = false;
g_context = NULL; g_context = NULL;
done: done:
slurm_mutex_unlock(&g_context_lock); slurm_mutex_unlock(&g_context_lock);
......
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