From 1bd39bb5eebcdbac9d4db7d02b8e50093e5caca4 Mon Sep 17 00:00:00 2001 From: Liu Xiaodong Date: Fri, 5 Mar 2021 07:50:24 -0500 Subject: [PATCH] thread: remove stat update in intr msg process Updating thread stat directly in spdk_thread_poll() will cover the time spend in msg process in interrupt mode. Change-Id: I9b71790281f10fb784ef4fd4059c41438bbaabac Signed-off-by: Liu Xiaodong Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6722 Tested-by: SPDK CI Jenkins Community-CI: Mellanox Build Bot Reviewed-by: Changpeng Liu Reviewed-by: Tomasz Zawadzki Reviewed-by: Maciej Szwed --- lib/thread/thread.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/thread/thread.c b/lib/thread/thread.c index 19530b17d..abf90407c 100644 --- a/lib/thread/thread.c +++ b/lib/thread/thread.c @@ -1864,7 +1864,6 @@ thread_interrupt_msg_process(void *arg) uint32_t msg_count; spdk_msg_fn critical_msg; int rc = 0; - uint64_t now = spdk_get_ticks(); critical_msg = thread->critical_msg; if (spdk_unlikely(critical_msg != NULL)) { @@ -1877,8 +1876,6 @@ thread_interrupt_msg_process(void *arg) rc = 1; } - thread_update_stats(thread, spdk_get_ticks(), now, rc); - return rc; }