nvmf: fix keep alive poller

Return SPDK_POLLER_IDLE if we didn't disable any controllers.

Signed-off-by: John Levon <john.levon@nutanix.com>
Change-Id: Ie16301c6e5f3f7e3f4b46906a95ef214674f4af8
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8560
Community-CI: Mellanox Build Bot
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
This commit is contained in:
John Levon 2021-06-29 15:36:27 +00:00 committed by Tomasz Zawadzki
parent d6e0bbee39
commit 6ec5e75ae4

View File

@ -197,10 +197,11 @@ nvmf_ctrlr_keep_alive_poll(void *ctx)
nvmf_ctrlr_disconnect_qpairs_on_pg,
ctrlr,
nvmf_ctrlr_disconnect_qpairs_done);
return SPDK_POLLER_BUSY;
}
}
return SPDK_POLLER_BUSY;
return SPDK_POLLER_IDLE;
}
static void