From 2cb3f9c1decee1dc82bf1aadc1648baad35ad831 Mon Sep 17 00:00:00 2001
From: Moe Jette <jette1@llnl.gov>
Date: Tue, 15 Jan 2008 17:42:14 +0000
Subject: [PATCH] Fix bug that caused slurmd to hang when using select/linear
 with     task/affinity.

---
 NEWS                             | 2 ++
 src/common/slurm_resource_info.c | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/NEWS b/NEWS
index 855f762189f..f8a290dcdc5 100644
--- a/NEWS
+++ b/NEWS
@@ -28,6 +28,8 @@ documents those changes that are of interest to users and admins.
  -- BLUEGENE: Reorganized bluegene plugin for maintainability sake.
  -- Major restructuring of data structures in select/cons_res.
  -- Support job, node and partition names of arbitrary size.
+ -- Fix bug that caused slurmd to hang when using select/linear with
+    task/affinity.
 
 * Changes in SLURM 1.3.0-pre7
 =============================
diff --git a/src/common/slurm_resource_info.c b/src/common/slurm_resource_info.c
index 690f8df0bab..94d545faa6b 100644
--- a/src/common/slurm_resource_info.c
+++ b/src/common/slurm_resource_info.c
@@ -132,6 +132,8 @@ int slurm_get_avail_procs(const uint16_t max_sockets,
 	switch(cr_type) {
 	/* For the following CR types, nodes have no notion of socket, core,
 	   and thread.  Only one level of logical processors */ 
+	case SELECT_TYPE_INFO_NONE:
+		/* Default for select/linear */
 	case CR_CPU:
 	case CR_CPU_MEMORY:
 		
-- 
GitLab