Skip to content

Commit 9850aa4

Browse files
committed
optimize blocking callback
1 parent a2c5805 commit 9850aa4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/components/tl/ucp/tl_ucp_context.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,11 @@ static int memcpy_device(void *dest, void *src, size_t size, void *user_data){
197197
}
198198
status = ucc_ee_executor_task_test(etask);
199199
while (status>0) {
200-
status = ucc_ee_executor_task_test(etask);
201-
if (ucc_unlikely(status < 0)) {
202-
return status;
203-
}
204-
}
200+
status = ucc_ee_executor_task_test(etask);
201+
}
202+
if (ucc_unlikely(status < 0)) {
203+
return status;
204+
}
205205
status = ucc_ee_executor_task_finalize(etask);
206206
if (ucc_unlikely(status < 0)) {
207207
return status;

0 commit comments

Comments
 (0)