Signed-off-by: Haomai Wang <haomai@xsky.com>
assert(center.in_thread());
int r = global_infiniband->get_tx_buffers(c, bytes);
assert(r >= 0);
- size_t got = global_infiniband->get_memory_manager()->get_tx_chunk_size() * r;
+ 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)