From b8db1af4e28b5602389f35d3bbe970c6b94c7f36 Mon Sep 17 00:00:00 2001 From: Liu Xiaodong Date: Fri, 5 Mar 2021 07:45:34 -0500 Subject: [PATCH] thread: criticalmsg also indicates valid event Change-Id: I32296be76dfdde725249f43a96f5031c9c2613ae Signed-off-by: Liu Xiaodong Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6721 Tested-by: SPDK CI Jenkins Community-CI: Mellanox Build Bot Reviewed-by: Changpeng Liu Reviewed-by: Tomasz Zawadzki --- lib/thread/thread.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/thread/thread.c b/lib/thread/thread.c index abf90407c..ab19a8f11 100644 --- a/lib/thread/thread.c +++ b/lib/thread/thread.c @@ -626,6 +626,7 @@ thread_poll(struct spdk_thread *thread, uint32_t max_msgs, uint64_t now) if (spdk_unlikely(critical_msg != NULL)) { critical_msg(NULL); thread->critical_msg = NULL; + rc = 1; } msg_count = msg_queue_run_batch(thread, max_msgs); @@ -1869,6 +1870,7 @@ thread_interrupt_msg_process(void *arg) if (spdk_unlikely(critical_msg != NULL)) { critical_msg(NULL); thread->critical_msg = NULL; + rc = 1; } msg_count = msg_queue_run_batch(thread, 0);