Skip to content

Commit

Permalink
ch3: Remove unnecessary checks in process group close
Browse files Browse the repository at this point in the history
These checks are not needed and lead to warnings due to set but unused
variable.
  • Loading branch information
raffenet committed Jan 2, 2025
1 parent 3acda18 commit e084fa0
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/mpid/ch3/src/mpidi_pg.c
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,7 @@ int MPIDI_PG_Close_VCs( void )
MPIR_FUNC_ENTER;

while (pg) {
int i, inuse, n, i_start;
int i, n, i_start;

MPL_DBG_MSG_S(MPIDI_CH3_DBG_DISCONNECT,VERBOSE,"Closing vcs for pg %s",
(char *)pg->id );
Expand All @@ -955,10 +955,6 @@ int MPIDI_PG_Close_VCs( void )
vc = &pg->vct[i];
/* If the VC is myself then skip the close message */
if (pg == MPIDI_Process.my_pg && i == MPIDI_Process.my_pg_rank) {
/* XXX DJG FIXME-MT should we be checking this? */
if (MPIR_Object_get_ref(vc) != 0) {
MPIDI_PG_release_ref(pg, &inuse);
}
continue;
}

Expand All @@ -968,12 +964,6 @@ int MPIDI_PG_Close_VCs( void )
MPIR_ERR_CHECK(mpi_errno);
} else if (vc->state == MPIDI_VC_STATE_INACTIVE ||
vc->state == MPIDI_VC_STATE_MORIBUND) {
/* XXX DJG FIXME-MT should we be checking this? */
if (MPIR_Object_get_ref(vc) != 0) {
/* FIXME: If the reference count for the vc is not 0,
something is wrong */
MPIDI_PG_release_ref(pg, &inuse);
}
/* Inactive connections need to be marked
INACTIVE_CLOSED, so that if a connection request
comes in during the close protocol, we know to
Expand Down

0 comments on commit e084fa0

Please sign in to comment.