Skip to content

Commit

Permalink
UCT/MM: minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shasson5 committed Feb 14, 2024
1 parent 4994497 commit b0283f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/uct/sm/mm/posix/mm_posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ uct_posix_mem_alloc(uct_md_h tl_md, size_t *length_p, void **address_p,
/* If using procfs link instead of mmid, remove the original file and update
* seg->seg_id */
if (posix_config->use_proc_link) {
uct_posix_unlink(md, seg->seg_id, UCS_LOG_LEVEL_DEBUG);
uct_posix_unlink(md, seg->seg_id, UCS_LOG_LEVEL_DIAG);

/* Replace mmid by pid+fd. Keep previous SHM_OPEN flag for mkey_pack() */
seg->seg_id = uct_posix_mmid_procfs_pack(fd) |
Expand Down Expand Up @@ -584,7 +584,7 @@ uct_posix_mem_alloc(uct_md_h tl_md, size_t *length_p, void **address_p,
err_close:
close(fd);
if (!(seg->seg_id & UCT_POSIX_SEG_FLAG_PROCFS)) {
uct_posix_unlink(md, seg->seg_id, UCS_LOG_LEVEL_ERROR);
uct_posix_unlink(md, seg->seg_id, UCS_LOG_LEVEL_WARN);
}
err_free_seg:
ucs_free(seg);
Expand Down

0 comments on commit b0283f2

Please sign in to comment.