For correct behaviour, pthread_mutex must be initialized before use and destroyed before the memory is zeroed. Add mutex initialization and destroy calls to test_nvme_pcie_hotplug_monitor. Tested with a pthreads library that contains debugging code to check the mutex state. Signed-off-by: Nick Connolly <nick.connolly@mayadata.io> Change-Id: Ifd770a85627a11e2b2c6643f798f796bab10b6cb Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6153 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ziye Yang <ziye.yang@intel.com> Community-CI: Mellanox Build Bot |
||
---|---|---|
.. | ||
nvme_ctrlr_cmd.c | ||
nvme_ctrlr_ocssd_cmd.c | ||
nvme_ctrlr.c | ||
nvme_ns_cmd.c | ||
nvme_ns_ocssd_cmd.c | ||
nvme_ns.c | ||
nvme_pcie.c | ||
nvme_poll_group.c | ||
nvme_qpair.c | ||
nvme_quirks.c | ||
nvme_rdma.c | ||
nvme_tcp.c | ||
nvme_uevent.c | ||
nvme.c | ||
Makefile |