Spdk/test/unit/lib/nvmf
Tomasz Zawadzki 6301f8915d lib/sock: provide a hint to picking optimal poll group
The process of matching qpair to poll group is split into
two distinct parts that occur on different threads.
See spdk_nvmf_tgt_new_qpair().

This results in a race condition for TCP between spdk_sock_map_lookup()
and spdk_sock_map_insert(), which are called in spdk_nvmf_get_optimal_poll_group()
and spdk_nvmf_poll_group_add() respectively.

Fixes #2113

This patch picks a hint from nvmf_tcp for next poll group,
which is then passed down to spdk_sock_map_lookup().

When matching placement_id exists, but does not have
a poll group assigned - the hint will be used.

Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Change-Id: I4abde2bc9c39225c9f5dd7c3654fa2639bb0a27f
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/10271
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
2022-04-01 12:41:26 +00:00
..
ctrlr_bdev.c nvmf: return async/complete status in bdev zcopy operations 2022-01-06 18:53:42 +00:00
ctrlr_discovery.c nvmf: fix discovery log change notice execution 2022-02-09 18:05:51 +00:00
ctrlr.c nvmf: add auxiliary asserts to confirm API usage is correct 2022-02-09 18:05:51 +00:00
fc_ls.c ut/fc : fix fc_ls_ut compilation failure 2021-12-16 08:43:39 +00:00
fc.c nvmf: abort outstanding zcopy reqs in qpair disconnect 2022-01-12 08:20:11 +00:00
nvmf.c nvmf: pass poll group to transport during create 2022-02-23 10:05:15 +00:00
rdma.c nvmf/rdma: Improve read performance in DIF strip mode 2022-04-01 11:19:18 +00:00
subsystem.c nvmf: support static CNTLID 2022-01-06 01:20:32 +00:00
tcp.c lib/sock: provide a hint to picking optimal poll group 2022-04-01 12:41:26 +00:00
transport.c nvmf: pass poll group to transport during create 2022-02-23 10:05:15 +00:00
vfio_user.c nvmf/vfio-user: remove vfio-user CSTS.CFS 2022-03-08 02:35:05 +00:00
Makefile test/nvmf: only build and run transport_ut.c when RDMA is enabled 2021-09-01 07:34:37 +00:00