From 70b8d2205d0c176ea92b642b7a65b6c61a707db8 Mon Sep 17 00:00:00 2001
From: Moe Jette <jette1@llnl.gov>
Date: Tue, 11 Sep 2007 19:40:12 +0000
Subject: [PATCH] In select/cons_res properly release resources allocated to
 job being suspended     (rmbreak.patch, from Chris Holmes, HP).

---
 NEWS                                          | 2 ++
 src/plugins/select/cons_res/select_cons_res.c | 2 --
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/NEWS b/NEWS
index 8b99103b3a9..a1deac01891 100644
--- a/NEWS
+++ b/NEWS
@@ -19,6 +19,8 @@ documents those changes that are of interest to users and admins.
     Based upon work by Kumar Krishna (HP, India).
  -- Add multi-core options to salloc and sbatch commands (sbatch.patch and
     cleanup.patch from Chris Holmes, HP).
+ -- In select/cons_res properly release resources allocated to job being suspended
+    (rmbreak.patch, from Chris Holmes, HP).
 
 * Changes in SLURM 1.3.0-pre2
 =============================
diff --git a/src/plugins/select/cons_res/select_cons_res.c b/src/plugins/select/cons_res/select_cons_res.c
index acd20d20d7c..50fb694fc96 100644
--- a/src/plugins/select/cons_res/select_cons_res.c
+++ b/src/plugins/select/cons_res/select_cons_res.c
@@ -2067,7 +2067,6 @@ extern int select_p_job_suspend(struct job_record *job_ptr)
 			default:
 				break;
 			}
-			break;
 		}
 		rc = SLURM_SUCCESS;
 		break;
@@ -2147,7 +2146,6 @@ extern int select_p_job_resume(struct job_record *job_ptr)
 			default:
 				break;
 			}
-			break;
 		}
 		rc = SLURM_SUCCESS;
 		break;
-- 
GitLab