+3
−5
Loading
If nvme_rdma_qpair_submit_sends() returns -ENOMEM, nvme_rdma_qpair_process_completions() returns immediately. In this case, nvme_rdma_qpair_process_completions() does not poll CQ. However, nvme_rdma_qpair_process_completions() can poll CQ even when there is no free slot in SQ. Hence move nvme_rdma_qpair_submit_sends() and nvme_rdma_qpair_submit_recvs() after the loop to poll CQ. nvme_rdma_qpair_submit_sends() and nvme_rdma_qpair_submit_recvs() output error log and so checking return code of them is not necessary and is removed in this patch. This fixes part of the github issue #1271. Signed-off-by:Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: Icf22879c69c3f84e6b1d91dc061b6f44237eedd1 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1342 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Ben Walker <benjamin.walker@intel.com> Reviewed-by:
Aleksey Marchuk <alexeymar@mellanox.com>