Loading
test/nvme_ctrlr_ocssd_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: Ifefec17b44ac01769fd9d041119fa093b4e9d8b2 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6155 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:
Ben Walker <benjamin.walker@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com>