Skip to content

Commit 0822f57

Browse files
committed
MTL OFI: Allow retries in MTL progress for interrupted syscalls
This fixes a regression in sockets provider which could return -EINTR value from fi_cq_read() due to a syscall being interrupted. The error value is currently interpreted as fatal condition. Relax the rule so that we can retry fi_cq_read() operation. Signed-off-by: Aravind Gopalakrishnan <[email protected]> (cherry picked from commit fb68726)
1 parent d793f08 commit 0822f57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ompi/mca/mtl/ofi/mtl_ofi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ ompi_mtl_ofi_progress(void)
116116
exit(1);
117117
}
118118
} else {
119-
if (ret == -FI_EAGAIN) {
119+
if (ret == -FI_EAGAIN || ret == -EINTR) {
120120
break;
121121
} else {
122122
opal_output(0, "%s:%d: Error returned from fi_cq_read: %s(%zd).\n"

0 commit comments

Comments
 (0)