ut/nvme_qpair: add missing mutex init
Add missing mutex init for ctrlr ctrlr_lock. Signed-off-by: Nick Connolly <nick.connolly@mayadata.io> Change-Id: I9f018898a828a2ca4caf246117b3b895c5069150 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9615 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
This commit is contained in:
parent
25e1099b93
commit
d960df9989
@ -191,6 +191,7 @@ static void test_nvme_qpair_process_completions(void)
|
||||
|
||||
TAILQ_INIT(&ctrlr.active_io_qpairs);
|
||||
TAILQ_INIT(&ctrlr.active_procs);
|
||||
CU_ASSERT(pthread_mutex_init(&ctrlr.ctrlr_lock, NULL) == 0);
|
||||
nvme_qpair_init(&qpair, 1, &ctrlr, 0, 32, false);
|
||||
nvme_qpair_init(&admin_qp, 0, &ctrlr, 0, 32, false);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user