nvmf: add the assert in spdk_nvmf_ctrlr_disconnect
Change-Id: I41c9946e6c30c3eda1abf3669270a9b9533e3a50 Signed-off-by: Ziye Yang <ziye.yang@intel.com> Reviewed-on: https://review.gerrithub.io/407612 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
5f6c428dbc
commit
b332897a04
@ -442,6 +442,9 @@ spdk_nvmf_ctrlr_disconnect(struct spdk_nvmf_qpair *qpair)
|
||||
struct spdk_nvmf_ctrlr *ctrlr = qpair->ctrlr;
|
||||
struct spdk_nvmf_qpair *admin_qpair = ctrlr->admin_qpair;
|
||||
|
||||
assert(admin_qpair != NULL);
|
||||
assert(admin_qpair->group != NULL);
|
||||
assert(admin_qpair->group->thread != NULL);
|
||||
spdk_thread_send_msg(admin_qpair->group->thread, ctrlr_delete_qpair, qpair);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user