]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
msg/async/rdma: limit buffer size under rdma max memory region size
authorChangcheng Liu <changcheng.liu@aliyun.com>
Thu, 13 Jun 2019 10:20:39 +0000 (18:20 +0800)
committerChangcheng Liu <changcheng.liu@aliyun.com>
Fri, 23 Aug 2019 02:45:05 +0000 (10:45 +0800)
commit4f5a31ab9d83401e6c2168c4501672d28cca89cb
tree678a140a1ab661912b544a186b59df396f4cf811
parent9c7ba67cc7acd4b183c79a680f5a15aaab9f3530
msg/async/rdma: limit buffer size under rdma max memory region size

The allocated buf size should be under hardware's max_mr_size. Or it'll
trigger out-of-bound access problem when calling ibv_reg_mr.

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