Spdk/lib/nvmf
Jim Harris 183c348557 nvmf/rdma: issue fused cmds consecutively to tgt layer
RDMA READs can cause cmds to be submitted to the target
layer in a different order than they were received
from the host.  Normally this is fine, but not for
fused commands.

So track fused commands as they reach
nvmf_rdma_request_process().  If we find a pair of
sequential commands that don't have valid FUSED settings
(i.e. NONE/SECOND, FIRST/NONE, FIRST/FIRST), we mark
the requests as "fused_failed" and will later fail them
just before they would be normally sent to the target
layer.

When we do find a pair of valid fused commands (FIRST
followed by SECOND), we will wait until both are
READY_TO_EXECUTE, and then submit them to the target
layer consecutively.

This fixes issue #2428 for RDMA transport.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I01ebf90e17761499fb6601456811f442dc2a2950
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12018
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2022-04-05 08:32:06 +00:00
..
ctrlr_bdev.c nvmf: make zcopy_end void 2022-01-06 18:53:42 +00:00
ctrlr_discovery.c nvmf: fix trid comparison for discovery subsystem entries 2022-03-14 08:44:21 +00:00
ctrlr.c nvmf: support oacs in cdata_init callback 2022-03-24 09:21:46 +00:00
fc_ls.c spelling: lib 2021-12-03 08:12:55 +00:00
fc.c nvmf/fc: call free() to the object allocated by calloc() 2022-02-28 11:08:16 +00:00
Makefile so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
nvmf_fc.h spelling: lib 2021-12-03 08:12:55 +00:00
nvmf_internal.h nvmf: add internal set Controller Fatal Status API 2022-03-08 02:35:05 +00:00
nvmf_rpc.c nvmf: remove deprecated max_qpairs_per_ctrlr parameter 2022-02-15 14:38:37 +00:00
nvmf.c nvmf: pass poll group to transport during create 2022-02-23 10:05:15 +00:00
rdma.c nvmf/rdma: issue fused cmds consecutively to tgt layer 2022-04-05 08:32:06 +00:00
spdk_nvmf.map lib/nvmf : Added support for ZCOPY 2021-07-23 08:34:43 +00:00
subsystem.c nvmf: deprecate automatic discovery listener 2022-02-28 11:06:16 +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/rdma: Improve read performance in DIF strip mode 2022-04-01 11:19:18 +00:00
transport.h nvmf/rdma: Improve read performance in DIF strip mode 2022-04-01 11:19:18 +00:00
vfio_user.c nvmf/rdma: Improve read performance in DIF strip mode 2022-04-01 11:19:18 +00:00