+52
−2
Loading
When no optimal poll group exists for a qpair, assignment for round robin happens in spdk_nvmf_tgt_new_qpair(). RDMA transport implments the logic for this assignment in nvmf_rdma_get_optimal_poll_group(). TCP relied on the spdk_nvmf_tgt_new_qpair() instead. This resulted in race condition when looking up and assigning optimal poll groups - see #2113. To remedy that, TCP now follows the same pattern as RDMA. Next patch will improve the sock map lookup to fix the #2113. Signed-off-by:Tomasz Zawadzki <tomasz.zawadzki@intel.com> Change-Id: I672d22ac15d06309edf87ece5d30f8e8d1095fbb Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/10270 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com>