Rename try_recv_rdma to init_recv_rdma

This commit is contained in:
Vitaliy Filippov
2025-12-07 21:06:36 +03:00
parent a67c415e0f
commit aacfdf0dec
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -749,7 +749,7 @@ void osd_messenger_t::check_peer_config(osd_client_t *cl)
}
});
// Add the initial receive request
try_recv_rdma(cl);
init_recv_rdma(cl);
}
}
#endif
+1 -1
View File
@@ -289,7 +289,7 @@ protected:
void try_send_rdma(osd_client_t *cl);
void try_send_rdma_odp(osd_client_t *cl);
void try_send_rdma_nodp(osd_client_t *cl);
bool try_recv_rdma(osd_client_t *cl);
bool init_recv_rdma(osd_client_t *cl);
void handle_rdma_events(msgr_rdma_context_t *rdma_context);
msgr_rdma_context_t* choose_rdma_context(osd_client_t *cl);
#endif
+1 -1
View File
@@ -734,7 +734,7 @@ static void try_recv_rdma_wr(osd_client_t *cl, msgr_rdma_buf_t b)
cl->rdma_conn->cur_recv++;
}
bool osd_messenger_t::try_recv_rdma(osd_client_t *cl)
bool osd_messenger_t::init_recv_rdma(osd_client_t *cl)
{
auto rc = cl->rdma_conn;
while (rc->cur_recv < rc->max_recv)
+1 -1
View File
@@ -531,7 +531,7 @@ void osd_messenger_t::rdmacm_established(rdma_cm_event *ev)
fprintf(stderr, "Successfully connected with OSD %ju using RDMA-CM\n", peer_osd);
}
// Add initial receive request(s)
try_recv_rdma(cl);
init_recv_rdma(cl);
if (peer_osd)
{
check_peer_config(cl);
+1 -1
View File
@@ -363,7 +363,7 @@ void osd_messenger_t::handle_send(int result, bool prev, bool more, osd_client_t
}
});
// Add the initial receive request
try_recv_rdma(cl);
init_recv_rdma(cl);
}
#endif
}