Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
a7aa2d73
Commit
a7aa2d73
authored
13 years ago
by
Danny Auble
Browse files
Options
Downloads
Patches
Plain Diff
BLUEGENE - fix to make a block resume from error state before freeing
the block
parent
4de53ad8
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/select/bluegene/select_bluegene.c
+3
-1
3 additions, 1 deletion
src/plugins/select/bluegene/select_bluegene.c
with
3 additions
and
1 deletion
src/plugins/select/bluegene/select_bluegene.c
+
3
−
1
View file @
a7aa2d73
...
@@ -2049,13 +2049,15 @@ extern int select_p_update_block(update_block_msg_t *block_desc_ptr)
...
@@ -2049,13 +2049,15 @@ extern int select_p_update_block(update_block_msg_t *block_desc_ptr)
list_destroy
(
delete_list
);
list_destroy
(
delete_list
);
put_block_in_error_state
(
bg_record
,
reason
);
put_block_in_error_state
(
bg_record
,
reason
);
}
else
if
(
block_desc_ptr
->
state
==
BG_BLOCK_FREE
)
{
}
else
if
(
block_desc_ptr
->
state
==
BG_BLOCK_FREE
)
{
/* Resume the block first and then free the block */
resume_block
(
bg_record
);
/* Increment free_cnt to make sure we don't loose this
/* Increment free_cnt to make sure we don't loose this
* block since bg_free_block will unlock block_state_mutex.
* block since bg_free_block will unlock block_state_mutex.
*/
*/
bg_record
->
free_cnt
++
;
bg_record
->
free_cnt
++
;
bg_free_block
(
bg_record
,
0
,
1
);
bg_free_block
(
bg_record
,
0
,
1
);
bg_record
->
free_cnt
--
;
bg_record
->
free_cnt
--
;
resume_block
(
bg_record
);
slurm_mutex_unlock
(
&
block_state_mutex
);
slurm_mutex_unlock
(
&
block_state_mutex
);
}
else
if
(
block_desc_ptr
->
state
==
BG_BLOCK_TERM
)
{
}
else
if
(
block_desc_ptr
->
state
==
BG_BLOCK_TERM
)
{
/* This can't be RM_PARTITION_READY since the enum
/* This can't be RM_PARTITION_READY since the enum
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment