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 |
||
---|---|---|
.. | ||
include | ||
lib | ||
Makefile | ||
unittest.sh |