Spdk/test/unit/lib/nvme
Nick Connolly 6ff30cefe9 test/nvme_pcie: initialize mutex for portability
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
2021-02-05 13:46:23 +00:00
..
nvme_ctrlr_cmd.c test/nvme_ctrlr_cmd: initialize mutex 2021-02-04 08:38:12 +00:00
nvme_ctrlr_ocssd_cmd.c test/nvme_ctrlr_ocssd_cmd: initialize mutex 2021-02-04 08:38:27 +00:00
nvme_ctrlr.c test/nvme_ctrlr: initialize mutex for portability 2021-02-04 08:37:59 +00:00
nvme_ns_cmd.c nvme: add support for ZNS zone append command 2021-01-22 08:15:55 +00:00
nvme_ns_ocssd_cmd.c test/unit/lib/nvme: Add unit test stubs 2020-11-19 09:49:41 +00:00
nvme_ns.c log: simplify SPDK_LOG_REGISTER_COMPONENT 2020-10-14 08:00:35 +00:00
nvme_pcie.c test/nvme_pcie: initialize mutex for portability 2021-02-05 13:46:23 +00:00
nvme_poll_group.c nvme: Add the interface to get the optimal polling group 2021-02-04 08:30:54 +00:00
nvme_qpair.c nvme: Don't log an error when we can't resubmit all requests 2020-10-26 11:48:46 +00:00
nvme_quirks.c log: simplify SPDK_LOG_REGISTER_COMPONENT 2020-10-14 08:00:35 +00:00
nvme_rdma.c test/nvme_rdma: RDMA requests allocation cases 2021-01-18 13:02:40 +00:00
nvme_tcp.c nvme/tcp: Add the implementation to get the optimal polling group 2021-02-04 08:30:54 +00:00
nvme_uevent.c nvme: read all uevents 2020-08-24 07:38:33 +00:00
nvme.c unittest/nvme: initialize mutex for portability 2021-02-04 08:38:44 +00:00
Makefile test/unit: add poll_group unit tests. 2020-04-07 08:38:40 +00:00