From 84257185a46ebb0fff5fcfb3894dcc117d84e2ab Mon Sep 17 00:00:00 2001 From: John Levon Date: Fri, 4 Mar 2022 10:27:51 +0000 Subject: [PATCH] nvmf/vfio-user: correct vfu_run_ctx() handling When vfu_run_ctx() returns EBUSY, due to an ongoing quiesce, we did no work, so should return SPDK_POLLER_IDLE. Signed-off-by: John Levon Change-Id: I5953ab652f0adf22df81c94c4bece507833cece4 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11810 Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Reviewed-by: Thanos Makatos Reviewed-by: Changpeng Liu Reviewed-by: Ben Walker Tested-by: SPDK CI Jenkins --- lib/nvmf/vfio_user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nvmf/vfio_user.c b/lib/nvmf/vfio_user.c index 24b180690..86d9adc2d 100644 --- a/lib/nvmf/vfio_user.c +++ b/lib/nvmf/vfio_user.c @@ -3685,7 +3685,7 @@ vfio_user_poll_vfu_ctx(void *ctx) ret = vfu_run_ctx(ctrlr->endpoint->vfu_ctx); if (spdk_unlikely(ret == -1)) { if (errno == EBUSY) { - return SPDK_POLLER_BUSY; + return SPDK_POLLER_IDLE; } spdk_poller_unregister(&ctrlr->vfu_ctx_poller);