From 6ec5e75ae4c7e934ce3a8a80af9c70783ff27bec Mon Sep 17 00:00:00 2001 From: John Levon Date: Tue, 29 Jun 2021 15:36:27 +0000 Subject: [PATCH] nvmf: fix keep alive poller Return SPDK_POLLER_IDLE if we didn't disable any controllers. Signed-off-by: John Levon Change-Id: Ie16301c6e5f3f7e3f4b46906a95ef214674f4af8 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8560 Community-CI: Mellanox Build Bot Community-CI: Broadcom CI Tested-by: SPDK CI Jenkins Reviewed-by: Thanos Makatos Reviewed-by: Changpeng Liu Reviewed-by: Aleksey Marchuk --- lib/nvmf/ctrlr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/nvmf/ctrlr.c b/lib/nvmf/ctrlr.c index 2e9372ebe..df1fdbacf 100644 --- a/lib/nvmf/ctrlr.c +++ b/lib/nvmf/ctrlr.c @@ -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