]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
msg/async/rdma: make clear to get mem_info address
authorChangcheng Liu <changcheng.liu@aliyun.com>
Mon, 1 Jul 2019 02:41:18 +0000 (10:41 +0800)
committerChangcheng Liu <changcheng.liu@aliyun.com>
Fri, 23 Aug 2019 03:35:55 +0000 (11:35 +0800)
commita62ce898f3b3f35e762d5d7a6c74cfa7ce091b54
tree473e86751be09799c13f609c53e826538ca2d299
parent32da5f1d038bb9b8abb8cc7fccd7df3f3e4ceef4
msg/async/rdma: make clear to get mem_info address

The parameter "block" points to mem_info::chunks space. It's not quite
clear about the function of "reinterpret_cast<mem_info *>(block) - 1;".
Get the mem_info::chunks address and minus the member offset from struct
head to get mem_info address.

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