Spdk/examples/nvme
Jim Harris 35a3cfd51e examples/nvme: fix reconnect memory leaks
1) In submit_single_io(), if an I/O fails to submit,
   we need to free the associated task structure,
   otherwise it gets leaked.
2) When draining I/O, just always check_io() instead
   of only doing it when current_queue_depth > 0.
   This is the simplest of ensuring that we cleanup
   the ns_ctx (including freeing the IO qpairs and
   the qpair pointer array) if the current_queue_depth
   is already 0 when starting to drain.

Fixes issue #2995.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I53f336c6a11ff63782dc81c087a58feca0e8a5d7
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17873
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
2023-05-09 17:58:11 +08:00
..
abort examples/abort: check process_completions()'s status 2023-02-13 13:50:15 +00:00
arbitration update Intel copyright notices 2022-11-10 08:28:53 +00:00
cmb_copy update Intel copyright notices 2022-11-10 08:28:53 +00:00
discovery_aer update Intel copyright notices 2022-11-10 08:28:53 +00:00
fio_plugin fio: set FIO_DISKLESSIO flag for spdk engines 2023-05-09 17:58:11 +08:00
hello_world update Intel copyright notices 2022-11-10 08:28:53 +00:00
hotplug hotplug: let device insertions/removals take priority 2023-01-09 11:16:50 +00:00
identify nvmf: add copy command support in get log page 2023-03-27 11:25:35 +00:00
nvme_manage nvme: support 64 LBA formats for NVM and ZNS command set 2023-02-15 10:37:56 +00:00
perf examples/nvme/perf: connect io qpairs asynchronously 2023-05-09 17:58:11 +08:00
pmr_persistence check_format: For C files only, fix return type breaks 2022-06-27 09:33:48 +00:00
reconnect examples/nvme: fix reconnect memory leaks 2023-05-09 17:58:11 +08:00
Makefile update Intel copyright notices 2022-11-10 08:28:53 +00:00