diff --git a/src/slurmctld/node_mgr.c b/src/slurmctld/node_mgr.c index df6b5690813e0d063a34eac4ec54a30e1470d748..79a6ca65f3dd7a67ab8f3fae35299ee214dac661 100644 --- a/src/slurmctld/node_mgr.c +++ b/src/slurmctld/node_mgr.c @@ -1253,7 +1253,9 @@ void ping_nodes (void) slurmctld_conf.last_update; /* Request a node registration if its state is UNKNOWN or DOWN - * and periodically otherwise (about every 17th ping) */ + * and periodically otherwise (about every 17th ping, this + * mechanism avoids an additional timer or counter and gets + * updated configuration information once in a while) */ if ((base_state == NODE_STATE_UNKNOWN) || (base_state == NODE_STATE_DOWN ) || force_reg) { debug3 ("attempt to register %s now", diff --git a/src/slurmctld/node_scheduler.c b/src/slurmctld/node_scheduler.c index 33d06d59c9db1fd4186d90954e4a2ab0e8fbb642..6f7fb52f5c860b2f20cf5cd6deca1526c2128e45 100644 --- a/src/slurmctld/node_scheduler.c +++ b/src/slurmctld/node_scheduler.c @@ -631,9 +631,7 @@ _pick_best_nodes(struct node_set *node_set_ptr, int node_set_size, *req_bitmap, min_nodes, max_nodes, req_cpus, contiguous); - if ((pick_code == SLURM_SUCCESS) && - ((node_lim == INFINITE) || - (bit_set_count(avail_bitmap) <= node_lim))) + if (pick_code == SLURM_SUCCESS) runable = true; } FREE_NULL_BITMAP(avail_bitmap);