]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
msg/async/rdma: cosmetics post_chunks_to_rq implementation
authorChangcheng Liu <changcheng.liu@aliyun.com>
Wed, 5 Jun 2019 02:33:20 +0000 (10:33 +0800)
committerChangcheng Liu <changcheng.liu@aliyun.com>
Fri, 23 Aug 2019 03:35:26 +0000 (11:35 +0800)
commit282499b77f85fed50ce00c5414af12335371a4b3
tree3a2411a710eb5d8ab3f6febe514fb3421ba7d1ce
parent6a0d3df90ac20076534e9849ecef0b90dbf64dff
msg/async/rdma: cosmetics post_chunks_to_rq implementation

1. It's not proper to allocate large space in stack. e.g. rx_queue_len is 4096.
The patch changes to allocate rx_work_request and isge in heap.

2. Set rx_work_request and isge array whole space into zero which could avoid
setting the space into zero one by one in the while loop.

3. Change parameter name "num" to be "rq_wr_num" to improve readiness
rq_wr_num i.e. receive-queue_work-request_number

Signed-off-by: Changcheng Liu <changcheng.liu@aliyun.com>
src/msg/async/rdma/Infiniband.cc