nvmf: Rename spdk_nvmf_ctrlr_disconnect to spdk_nvmf_qpair_disconnect
Change-Id: I0c6c410d120bec830ec17105de43ca62bf202b7b Signed-off-by: Ben Walker <benjamin.walker@intel.com> Reviewed-on: https://review.gerrithub.io/415313 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
This commit is contained in:
parent
a5279b6403
commit
878185cf0e
@ -189,6 +189,13 @@ int spdk_nvmf_poll_group_add(struct spdk_nvmf_poll_group *group,
|
|||||||
int spdk_nvmf_poll_group_remove(struct spdk_nvmf_poll_group *group,
|
int spdk_nvmf_poll_group_remove(struct spdk_nvmf_poll_group *group,
|
||||||
struct spdk_nvmf_qpair *qpair);
|
struct spdk_nvmf_qpair *qpair);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Disconnect an NVMe-oF qpair
|
||||||
|
*
|
||||||
|
* \param qpair The NVMe-oF qpair to disconnect.
|
||||||
|
*/
|
||||||
|
void spdk_nvmf_qpair_disconnect(struct spdk_nvmf_qpair *qpair);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create an NVMe-oF subsystem.
|
* Create an NVMe-oF subsystem.
|
||||||
*
|
*
|
||||||
@ -649,13 +656,6 @@ const char *spdk_nvmf_subsystem_get_nqn(struct spdk_nvmf_subsystem *subsystem);
|
|||||||
*/
|
*/
|
||||||
enum spdk_nvmf_subtype spdk_nvmf_subsystem_get_type(struct spdk_nvmf_subsystem *subsystem);
|
enum spdk_nvmf_subtype spdk_nvmf_subsystem_get_type(struct spdk_nvmf_subsystem *subsystem);
|
||||||
|
|
||||||
/**
|
|
||||||
* Disconnect the NVMe-oF controller.
|
|
||||||
*
|
|
||||||
* \param qpair The NVMe-oF qpair associated with the controller.
|
|
||||||
*/
|
|
||||||
void spdk_nvmf_ctrlr_disconnect(struct spdk_nvmf_qpair *qpair);
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -670,7 +670,7 @@ _spdk_nvmf_qpair_deactivate(void *ctx)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
spdk_nvmf_ctrlr_disconnect(struct spdk_nvmf_qpair *qpair)
|
spdk_nvmf_qpair_disconnect(struct spdk_nvmf_qpair *qpair)
|
||||||
{
|
{
|
||||||
/* Send a message to the thread that owns this qpair */
|
/* Send a message to the thread that owns this qpair */
|
||||||
spdk_thread_send_msg(qpair->group->thread, _spdk_nvmf_qpair_deactivate, qpair);
|
spdk_thread_send_msg(qpair->group->thread, _spdk_nvmf_qpair_deactivate, qpair);
|
||||||
|
@ -780,7 +780,7 @@ nvmf_rdma_disconnect(struct rdma_cm_event *evt)
|
|||||||
/* ack the disconnect event before rdma_destroy_id */
|
/* ack the disconnect event before rdma_destroy_id */
|
||||||
rdma_ack_cm_event(evt);
|
rdma_ack_cm_event(evt);
|
||||||
|
|
||||||
spdk_nvmf_ctrlr_disconnect(qpair);
|
spdk_nvmf_qpair_disconnect(qpair);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -113,7 +113,7 @@ struct spdk_nvme_ns *spdk_nvme_ctrlr_get_ns(struct spdk_nvme_ctrlr *ctrlr, uint3
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
spdk_nvmf_ctrlr_disconnect(struct spdk_nvmf_qpair *qpair)
|
spdk_nvmf_qpair_disconnect(struct spdk_nvmf_qpair *qpair)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user