nvmf/vfio-user: don't set ACTIVE state for ADMIN queue pair
When doing live migration, the destination VM will construct
ADMIN queue pair at the beginning, but the controller isn't
in READY state, we should not poll the ADMIN queue pair right
now. This is fine for normal controllers, normal controllers
will set ADMIN queue pair state in CC callback.
Signed-off-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/10621 (master)
(cherry picked from commit d73d43a9cf
)
Change-Id: I0db36f75a463fb7476ee62323f9ed0c74c2451dc
Signed-off-by: Krzysztof Karas <krzysztof.karas@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11278
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
0c8f7ef798
commit
86e7067d71
@ -2919,7 +2919,6 @@ handle_queue_connect_rsp(struct nvmf_vfio_user_req *req, void *cb_arg)
|
||||
|
||||
vu_group = SPDK_CONTAINEROF(vu_sq->group, struct nvmf_vfio_user_poll_group, group);
|
||||
TAILQ_INSERT_TAIL(&vu_group->sqs, vu_sq, link);
|
||||
vu_sq->sq_state = VFIO_USER_SQ_ACTIVE;
|
||||
|
||||
vu_cq = vu_ctrlr->cqs[0];
|
||||
assert(vu_cq != NULL);
|
||||
@ -2961,6 +2960,7 @@ handle_queue_connect_rsp(struct nvmf_vfio_user_req *req, void *cb_arg)
|
||||
}
|
||||
vu_sq->post_create_io_sq_completion = false;
|
||||
}
|
||||
vu_sq->sq_state = VFIO_USER_SQ_ACTIVE;
|
||||
}
|
||||
|
||||
TAILQ_INSERT_TAIL(&vu_ctrlr->connected_sqs, vu_sq, tailq);
|
||||
|
Loading…
Reference in New Issue
Block a user