From 2648aa92c62bf3f1703187bd2dbbbe5692f74de5 Mon Sep 17 00:00:00 2001 From: Morris Jette <jette@schedmd.com> Date: Wed, 9 Jul 2014 10:41:23 -0700 Subject: [PATCH] Call task_g_post_step() before frequency reset Per request from David Gloe (Cray) --- src/slurmd/slurmstepd/mgr.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/slurmd/slurmstepd/mgr.c b/src/slurmd/slurmstepd/mgr.c index 0de02bf92b6..5fc2f21f958 100644 --- a/src/slurmd/slurmstepd/mgr.c +++ b/src/slurmd/slurmstepd/mgr.c @@ -1150,17 +1150,15 @@ fail2: _wait_for_io(job); /* - * Reset cpu frequency if it was changed + * Warn task plugin that the user's step have terminated */ - - if (job->cpu_freq != NO_VAL) - cpu_freq_reset(job); + task_g_post_step(job); /* - * Warn task plugin that the user's step have terminated + * Reset cpu frequency if it was changed */ - - task_g_post_step(job); + if (job->cpu_freq != NO_VAL) + cpu_freq_reset(job); /* * This just cleans up all of the PAM state in case rc == 0 -- GitLab