nvme: add nvme_completion_poll_status to spdk_nvme_qpair
This gives us a context that we can poll on when using the nvme_wait_for_completion framework for async operations. Signed-off-by: Jim Harris <james.r.harris@intel.com> Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com> Change-Id: I5b23f9096eed5ce95848d1995c1ed0b4c74edc92 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8602 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: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Ziye Yang <ziye.yang@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
This commit is contained in:
parent
03713cc291
commit
b2bc01cd72
@ -466,6 +466,8 @@ struct spdk_nvme_qpair {
|
||||
void *req_buf;
|
||||
|
||||
const struct spdk_nvme_transport *transport;
|
||||
|
||||
struct nvme_completion_poll_status *poll_status;
|
||||
};
|
||||
|
||||
struct spdk_nvme_poll_group {
|
||||
|
@ -779,6 +779,7 @@ nvme_qpair_init(struct spdk_nvme_qpair *qpair, uint16_t id,
|
||||
qpair->trtype = ctrlr->trid.trtype;
|
||||
qpair->is_new_qpair = true;
|
||||
qpair->async = async;
|
||||
qpair->poll_status = NULL;
|
||||
|
||||
STAILQ_INIT(&qpair->free_req);
|
||||
STAILQ_INIT(&qpair->queued_req);
|
||||
|
Loading…
Reference in New Issue
Block a user