numam-spdk/examples
Ziye Yang 1b8cbebf1c nvme/perf: fix the core dump issue.
If spdk_nvme_probe fails, there will be no controller,
and we jump to clean up. And the thread is not created,
so we need to judge the value of thread. if it is not zero,
we will do the pthread_cancel. Otherwise, we do not
need to call that. If we call that, it will have coredump.

btw: we also fix an small issue of cleanup.

Change-Id: Iee854f6ef42ef6d4a3d3f63d57740375e293a3ba
Signed-off-by: Ziye Yang <ziye.yang@intel.com>
Reviewed-on: https://review.gerrithub.io/c/444147
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2019-02-12 18:40:50 +00:00
..
bdev thread: Optionally allow the current time to be passed to 2019-02-11 22:58:45 +00:00
blob examples/blob: Replace atoll by spdk_strtoll 2019-01-29 17:39:18 +00:00
ioat examples/ioat: Improve error check of input parsing by spdk_strtol 2019-01-29 00:10:57 +00:00
nvme nvme/perf: fix the core dump issue. 2019-02-12 18:40:50 +00:00
sock examples/sock: Improve error check of input parsing by spdk_strtol 2019-01-29 17:39:18 +00:00
Makefile examples/sock/hello_sock: introduce sample application for libsock 2018-08-14 14:52:19 +00:00