numam-spdk/test
Nick Connolly 05aaac9c14 test/nvme_ctrlr_cmd: initialize mutex
For correct behaviour, pthread_mutex must be initialized before use
and destroyed afterwards. Add mutex initialization to
DECLARE_AND_CONSTRUCT_CTRLR and add DECONSTRUCT_CTRLR
to cleanup afterwards.

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: Id1d62e6f76548bd8e259d4d9c4d453a3218b0b1c
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6159
Community-CI: Broadcom CI
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2021-02-04 08:38:12 +00:00
..
accel_engine accel_engine test: Add the test case for accel_engine. 2021-01-21 15:49:40 +00:00
app build: add ufc to SYS_LIBS in spdk.common.mk 2020-12-28 13:32:06 +00:00
bdev test/bdev: Use PRIx64 for portability 2021-01-21 09:51:20 +00:00
blobfs build: use DEPDIRS variables to build SPDK_LIB_LIST 2020-12-18 09:40:01 +00:00
blobstore scheduler: Change main core frequency dynamically 2021-01-22 18:31:25 +00:00
common nvmf/vfio_user: disable vfio_user by default 2021-01-29 15:15:23 +00:00
compress script/gen_nvme: do not generate legacy configuration 2020-10-22 17:08:41 +00:00
config_converter scripts/config_converter: skip sections not present in legacy config 2021-01-15 08:32:10 +00:00
cpp_headers queue_extras: use SPDK_CONTAINEROF 2019-10-07 15:06:01 +00:00
dd test/dd: Lower the number of block size tests 2020-08-20 09:27:21 +00:00
dpdk_memory_utility build: Output executables from the app directory to build/bin 2020-06-15 15:27:16 +00:00
env env/dpdk: Use the DPDK device count for IOMMU mapping 2021-01-22 18:32:53 +00:00
event test/scheduler: application to test behaviour of schedulers 2021-01-22 18:31:25 +00:00
external_code libvfio-user: set COMMON_CFLAGS for external_code tests 2021-01-21 12:51:13 +00:00
ftl scripts: replace PCI_WHITELIST with PCI_ALLOWED 2020-12-03 09:41:07 +00:00
fuzz test/iscsi: remove VPP tests 2020-08-17 08:19:46 +00:00
ioat build: Example applications build to build/example 2020-06-15 15:27:16 +00:00
iscsi_tgt script/gen_nvme: do not generate legacy configuration 2020-10-22 17:08:41 +00:00
json_config lib/bdev: delay bdev_register notification til after examine 2021-01-15 08:28:57 +00:00
lvol test/lvol: rename lvol test script 2020-10-20 08:54:53 +00:00
make lib/thread: Defer exiting thread if thread is unregistering io_device 2021-01-13 10:07:51 +00:00
nvme test/nvme_perf: add option for alternative fio job layout 2021-01-18 13:02:49 +00:00
nvmf nvmf/vfio_user: disable vfio_user by default 2021-01-29 15:15:23 +00:00
ocf test/ocf: remove unused nvme_cfg() function 2020-11-05 09:37:55 +00:00
openstack script/gen_nvme: do not generate legacy configuration 2020-10-22 17:08:41 +00:00
pmem build: Output executables from the app directory to build/bin 2020-06-15 15:27:16 +00:00
rpc build: Output executables from the app directory to build/bin 2020-06-15 15:27:16 +00:00
rpc_client build: use DEPDIRS variables to build SPDK_LIB_LIST 2020-12-18 09:40:01 +00:00
scheduler test/scheduler: Add basic tests for verifying interrupt mode 2021-01-25 20:37:50 +00:00
spdkcli Revert "lib/event: do not spawn a thread for each reactor" 2021-02-01 08:04:51 +00:00
unit test/nvme_ctrlr_cmd: initialize mutex 2021-02-04 08:38:12 +00:00
vhost lib/vhost: force cpumask to be subset of application's CPU mask 2021-02-04 08:35:08 +00:00
vmd test: replace VMD_WHITELIST with VMD_ALLOWED 2020-12-03 09:41:07 +00:00
Makefile build: add option to disable building unit tests 2020-03-10 09:12:21 +00:00
spdk_cunit.h test: remove leftover spdk_cunit declaration 2018-07-06 22:47:56 +00:00