Spdk/examples/nvme
Jim Harris d07dc4d361 nvme/fio: free io_qpairs in close callback
If user uses the 'loops' parameter, then it will
call the open+close callbacks for each loop, but only
cleanup at the end of the entire run. Since we alloc
the io_qpair in open, but don't free them until
cleanup, we end up running out of io qpairs at some
point if we run too many loops.

So solution is to free the io qpairs in the close
callback.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: Ibac864836f94994cdd24a7886894778268b14f73
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/10674
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: John Kariuki <John.K.Kariuki@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Dong Yi <dongx.yi@intel.com>
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2021-12-15 16:45:56 +00:00
..
abort logs: create a log level flag in abort and hotplug applications 2021-12-14 09:12:01 +00:00
arbitration examples/arbitration: fix wrong usage of arbitration for vfio-user transport 2021-12-03 00:46:52 +00:00
cmb_copy examples/nvme/cmb_copy: exit the test tool if no controller found 2021-10-20 07:24:47 +00:00
fio_plugin nvme/fio: free io_qpairs in close callback 2021-12-15 16:45:56 +00:00
hello_world example/nvme/hello_world: add support for vfio-user transport 2021-12-07 08:22:13 +00:00
hotplug logs: create a log level flag in abort and hotplug applications 2021-12-14 09:12:01 +00:00
identify spelling: examples 2021-12-01 09:15:03 +00:00
nvme_manage spelling: examples 2021-12-01 09:15:03 +00:00
perf spelling: examples 2021-12-01 09:15:03 +00:00
pmr_persistence nvme: Add spdk_nvme_detach_poll() to simplify a common use case 2021-06-30 22:54:19 +00:00
reconnect spelling: examples 2021-12-01 09:15:03 +00:00
Makefile examples/pmr_persistence: Add PMR example application 2021-04-22 20:10:21 +00:00