From f096f252d0a65a8e6cd670d3753526684cac2853 Mon Sep 17 00:00:00 2001 From: Ziye Yang Date: Thu, 9 Jul 2020 23:15:00 +0800 Subject: [PATCH] uring/sock: remove the SPDK_UNREACHABLE For some exceptional cases (e.g., https://github.com/spdk/spdk/issues/1486), we may detect POLLERR or other events. So for those events, we can just ingore it, but not use SPDK_UNREACHABLE. Signed-off-by: Ziye Yang Change-Id: I073575408783ff75e50b40d45ddf09388a2cab96 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3262 Reviewed-by: Shuhei Matsumoto Reviewed-by: Changpeng Liu Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins --- module/sock/uring/uring.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/module/sock/uring/uring.c b/module/sock/uring/uring.c index 867544da8..3066f2d16 100644 --- a/module/sock/uring/uring.c +++ b/module/sock/uring/uring.c @@ -925,8 +925,6 @@ sock_uring_group_reap(struct spdk_uring_sock_group_impl *group, int max, int max sock->pending_recv = true; TAILQ_INSERT_TAIL(&group->pending_recv, sock, link); } - } else { - SPDK_UNREACHABLE(); } break; case SPDK_SOCK_TASK_WRITE: