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 *