]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
msg/async/rdma: allocated reged mem can be greater than requires len 15903/head
authorAdir lev <adirl@mellanox.com>
Sun, 28 May 2017 07:37:37 +0000 (10:37 +0300)
committerAdir Lev <adirl@mellanox.com>
Sat, 24 Jun 2017 22:54:38 +0000 (01:54 +0300)
Change-Id: I3ec42afca39c2ad93fc66ed69b3609b68f315e34
Signed-off-by: Adir lev <adirl@mellanox.com>
src/msg/async/rdma/RDMAStack.cc

index c9b74d1538a448cefbe0070abd073c9877f95a20..c17ef18955757a02b396a482505142640d2615a8 100644 (file)
@@ -474,7 +474,7 @@ int RDMAWorker::get_reged_mem(RDMAConnectedSocketImpl *o, std::vector<Chunk*> &c
   size_t got = global_infiniband->get_memory_manager()->get_tx_buffer_size() * r;
   ldout(cct, 30) << __func__ << " need " << bytes << " bytes, reserve " << got << " registered  bytes, inflight " << dispatcher->inflight << dendl;
   stack->get_dispatcher()->inflight += r;
-  if (got == bytes)
+  if (got >= bytes)
     return r;
 
   if (o) {