From 2c34af8bffa18b89bb922f553a262cfed752775a Mon Sep 17 00:00:00 2001 From: John Levon Date: Tue, 29 Jun 2021 14:39:08 +0000 Subject: [PATCH] nvmf: fix nvmf_tgt_accept() return code Pollers are supposed to return SPDK_POLLER_{BUSY,IDLE}. Signed-off-by: John Levon Change-Id: I92bd184aaba9e3efb730b68a6024ebc9757ffd8b Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8559 Reviewed-by: Paul Luse Reviewed-by: Changpeng Liu Reviewed-by: Ben Walker Reviewed-by: Konrad Sztyber Tested-by: SPDK CI Jenkins --- lib/nvmf/nvmf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nvmf/nvmf.c b/lib/nvmf/nvmf.c index 702be795c6..8e25d0f1f7 100644 --- a/lib/nvmf/nvmf.c +++ b/lib/nvmf/nvmf.c @@ -248,7 +248,7 @@ nvmf_tgt_accept(void *ctx) count += nvmf_transport_accept(transport); } - return count; + return count > 0 ? SPDK_POLLER_BUSY : SPDK_POLLER_IDLE; } struct spdk_nvmf_tgt *