Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Commit 2fe2b59

Browse files
Sunanda RoyJuston Li
Sunanda Roy
authored and
Juston Li
committed
Create namespace for non-critical healthstate
Signed-off-by: Roy, Sunanda <[email protected]>
1 parent cc57dc2 commit 2fe2b59

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/lib/pool.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,8 @@ void add_dimm_to_pool(const struct pool_data *p_pool_data,
577577
{
578578
KEEP_POOL_HEALTH(p_pool->health, POOL_HEALTH_UNKNOWN);
579579
}
580-
else if (status.health != DEVICE_HEALTH_NORMAL ||
580+
else if ((status.health != DEVICE_HEALTH_NORMAL &&
581+
status.health != DEVICE_HEALTH_NONCRITICAL) ||
581582
status.viral_state)
582583
{
583584
KEEP_POOL_HEALTH(p_pool->health, POOL_HEALTH_ERROR);
@@ -682,8 +683,8 @@ void nvm_interleave_to_interleave(
682683
{
683684
KEEP_INTERLEAVE_HEALTH(p_iset->health, INTERLEAVE_HEALTH_FAILED)
684685
}
685-
else if (p_pool_data->dimm_status_list[data_idx].health !=
686-
DEVICE_HEALTH_NORMAL)
686+
else if ((p_pool_data->dimm_status_list[data_idx].health != DEVICE_HEALTH_NORMAL) &&
687+
(p_pool_data->dimm_status_list[data_idx].health != DEVICE_HEALTH_NONCRITICAL))
687688
{
688689
KEEP_INTERLEAVE_HEALTH(p_iset->health, INTERLEAVE_HEALTH_DEGRADED)
689690
}

0 commit comments

Comments
 (0)