Spdk/lib/nvmf
Changpeng Liu b70b16acba nvmf: don't use request internal variable after req_complete callback
vfio-user transport `req_complete` callback will zero the internal
NVMe command and response fields, the common NVMf library should
not use them after the callback, so here we use stack variables
to save them before the `req_complete` callback.

Fix issue #1965.

Change-Id: Iff2342b6095d9496cdf112d657a0a99ce1fb5d12
Signed-off-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8129
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Reviewed-by: Karol Latecki <karol.latecki@intel.com>
Reviewed-by: <dongx.yi@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2021-06-03 04:03:04 +00:00
..
ctrlr_bdev.c nvmf: Support physical block size if exposed by bdev 2021-05-06 07:14:40 +00:00
ctrlr_discovery.c nvmf: remove a bdev_module.h #include 2021-05-11 11:57:01 +00:00
ctrlr.c nvmf: don't use request internal variable after req_complete callback 2021-06-03 04:03:04 +00:00
fc_ls.c nvmf/fc: Handle out of order fused commands. 2021-01-14 16:18:25 +00:00
fc.c nvmf: use SPDK_TRACE_ARG_TYPE #defines 2021-05-07 11:35:38 +00:00
Makefile nvmf: Remove spdk_nvmf_request_get_buffers_multi API 2021-05-18 12:44:18 +00:00
nvmf_fc.h nvmf/fc: Add flag to differentiate LS queue and non LS queue. 2021-01-14 16:18:25 +00:00
nvmf_internal.h nvmf: support NVME ACRE feature 2021-05-20 15:18:52 +00:00
nvmf_rpc.c nvmf: Allow configurable controller ID range 2021-05-12 09:18:48 +00:00
nvmf.c lib/nvmf: Add current qpair count to poll group statistic 2021-05-27 07:35:49 +00:00
rdma.c nvmf: Rearrange spdk_nvmf_requset for cache line locality 2021-05-24 10:10:19 +00:00
spdk_nvmf.map nvmf: Remove spdk_nvmf_request_get_buffers_multi API 2021-05-18 12:44:18 +00:00
subsystem.c nvmf: fix heap corruption of Reservation Report command 2021-05-13 10:10:42 +00:00
tcp.c nvme_tcp: Correctly handle the data digest err 2021-05-31 07:15:16 +00:00
transport.c nvmf: Remove spdk_nvmf_request_get_buffers_multi API 2021-05-18 12:44:18 +00:00
transport.h nvmf: Allow nvmf_transport_qpair_fini to complete asynchronously. 2020-11-18 11:28:02 +00:00
vfio_user.c vfio-user: update for libvfio-user region offset API change 2021-05-27 01:33:31 +00:00