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 <xiaodong.liu@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6722
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Maciej Szwed <maciej.szwed@intel.com>
This commit is contained in:
Liu Xiaodong 2021-03-05 07:50:24 -05:00 committed by Tomasz Zawadzki
parent 3690dbbd2e
commit 1bd39bb5ee

View File

@ -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;
}