]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
msg/async/rdma: rename variable to improve readability
authorChangcheng Liu <changcheng.liu@aliyun.com>
Wed, 7 Aug 2019 05:33:37 +0000 (13:33 +0800)
committerChangcheng Liu <changcheng.liu@aliyun.com>
Fri, 23 Aug 2019 03:35:55 +0000 (11:35 +0800)
commitae6759aa526769a5f80599ac9877cc925ada180c
tree6fccc7ca8016e553268aafb4df122cf881304d98
parenta62ce898f3b3f35e762d5d7a6c74cfa7ce091b54
msg/async/rdma: rename variable to improve readability

Device::binding_port
1. port_id is more meaningful compared to i as variable name.
2. start port_id from 1 instead of 0.

PoolAllocator::malloc
1. make clear relationship among buffer/chunk/block/memory_region with new
variable name.
2. define the variable when it's first being used.

RDMAConnectedSocketImpl::submit
1. use "wait_copy_len" to replace "need_reserve_bytes" which stands for the memory
that is waiting to be copied into chunk.
2. use "copy_start" to replace "copy_it" which stands for the start iterator to be copied.
3. use "total_copied" to replace "total" which stands for the memory that has been copied.

allocate huge page
1. use "HUGE_PAGE_SIZE_2MB" to be used for 2MB page alignment.
2. use "ALIGN_TO_PAGE_2MB" to stands align request size to 2MB.

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