Commit 7b177ce
committed
btl/base_am_rdma: fix handling of btl_send returning 1
Active message RDMA uses btl_send to send the initial
request and RDMA response.
btl_send will return 0 when the descriptor has been
successfully queued for send, and will return 1 when
the desciptor has been successfully sent.
Currently, active message RDMA treats the return value
1 as an error, thus will either return the value
to caller, or retry the send.
This patch address the issue by correctly handling
the return value 1.
Signed-off-by: Wei Zhang <wzam@amazon.com>1 parent b277aba commit 7b177ce
1 file changed
+16
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
| 375 | + | |
375 | 376 | | |
376 | 377 | | |
377 | 378 | | |
| |||
409 | 410 | | |
410 | 411 | | |
411 | 412 | | |
412 | | - | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
413 | 419 | | |
414 | 420 | | |
415 | 421 | | |
| |||
614 | 620 | | |
615 | 621 | | |
616 | 622 | | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
617 | 626 | | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
618 | 631 | | |
619 | 632 | | |
620 | 633 | | |
| |||
787 | 800 | | |
788 | 801 | | |
789 | 802 | | |
| 803 | + | |
790 | 804 | | |
791 | 805 | | |
792 | 806 | | |
793 | 807 | | |
794 | | - | |
| 808 | + | |
795 | 809 | | |
796 | 810 | | |
797 | 811 | | |
| |||
0 commit comments