nvmf: Remove qpair from poll group when it is deleted
That prevents nvmf target from starting to destroy poll groups prematurely Signed-off-by: Alexey Marchuk <alexeymar@mellanox.com> Change-Id: I833f6198ef0e3083fdadf70dd3b62844c905aceb Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7881 Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
d8eb6957a0
commit
103f5c62f5
@ -929,6 +929,7 @@ _nvmf_transport_qpair_fini(void *ctx)
|
||||
{
|
||||
struct nvmf_qpair_disconnect_ctx *qpair_ctx = ctx;
|
||||
|
||||
spdk_nvmf_poll_group_remove(qpair_ctx->qpair);
|
||||
nvmf_transport_qpair_fini(qpair_ctx->qpair, _nvmf_transport_qpair_fini_complete, qpair_ctx);
|
||||
}
|
||||
|
||||
@ -998,9 +999,8 @@ _nvmf_qpair_destroy(void *ctx, int status)
|
||||
assert(qpair->state == SPDK_NVMF_QPAIR_DEACTIVATING);
|
||||
qpair_ctx->qid = qpair->qid;
|
||||
|
||||
spdk_nvmf_poll_group_remove(qpair);
|
||||
|
||||
if (!ctrlr || !ctrlr->thread) {
|
||||
spdk_nvmf_poll_group_remove(qpair);
|
||||
nvmf_transport_qpair_fini(qpair, _nvmf_transport_qpair_fini_complete, qpair_ctx);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user