Repository navigation
Commit 722c7b2
RDMA/{cma, core}: Avoid callback on rdma_addr_cancel()
Currently rdma_addr_cancel() is an async operation, which notifies that
cancel is done by executing the callback function given during
rdma_resolve_ip(). If resolve_ip request is already completed than
callback is not executed.
Instead, now rdma_resolve_addr() and rdma_addr_cancel() simplified in
following ways.
1. rdma_addr_cancel() now a synchronous method. If request was
pending, after it is cancelled, no callback is notified.
2. rdma_resolve_addr() and respective addr_handler() callback doesn't
need to hold reference to cm_id.
Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>1 parent f9d08f1 commit 722c7b2
2 files changed
Lines changed: 7 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
660 | 660 | | |
661 | 661 | | |
662 | 662 | | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
663 | 670 | | |
664 | 671 | | |
665 | 672 | | |
| |||
687 | 694 | | |
688 | 695 | | |
689 | 696 | | |
690 | | - | |
691 | | - | |
692 | | - | |
693 | | - | |
694 | | - | |
695 | 697 | | |
696 | 698 | | |
697 | 699 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2880 | 2880 | | |
2881 | 2881 | | |
2882 | 2882 | | |
2883 | | - | |
2884 | 2883 | | |
2885 | 2884 | | |
2886 | 2885 | | |
2887 | 2886 | | |
2888 | 2887 | | |
2889 | | - | |
2890 | 2888 | | |
2891 | 2889 | | |
2892 | 2890 | | |
| |||
2983 | 2981 | | |
2984 | 2982 | | |
2985 | 2983 | | |
2986 | | - | |
2987 | 2984 | | |
2988 | 2985 | | |
2989 | 2986 | | |
| |||
3001 | 2998 | | |
3002 | 2999 | | |
3003 | 3000 | | |
3004 | | - | |
3005 | 3001 | | |
3006 | 3002 | | |
3007 | 3003 | | |
| |||
0 commit comments