Spdk/examples/nvme
Jim Harris 573dbd3a59 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>
2022-06-30 13:32:29 -04:00
..
abort logs: create a log level flag in abort and hotplug applications 2022-06-30 13:32:29 -04:00
arbitration examples/arbitration: fix wrong usage of arbitration for vfio-user transport 2022-06-30 13:32:28 -04:00
cmb_copy examples/nvme/cmb_copy: exit the test tool if no controller found 2022-06-30 13:32:26 -04:00
fio_plugin nvme/fio: free io_qpairs in close callback 2022-06-30 13:32:29 -04:00
hello_world example/nvme/hello_world: add support for vfio-user transport 2022-06-30 13:32:29 -04:00
hotplug logs: create a log level flag in abort and hotplug applications 2022-06-30 13:32:29 -04:00
identify spelling: examples 2022-06-30 13:32:28 -04:00
nvme_manage spelling: examples 2022-06-30 13:32:28 -04:00
perf spelling: examples 2022-06-30 13:32:28 -04: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 2022-06-30 13:32:28 -04:00
Makefile examples/pmr_persistence: Add PMR example application 2021-04-22 20:10:21 +00:00