From 9ff6238b88bd1f0dab5983ab2a7c5ac4ee52d5ed Mon Sep 17 00:00:00 2001 From: Shuhei Matsumoto Date: Thu, 6 May 2021 23:33:09 +0900 Subject: [PATCH] event/scheduler: Include not spdk_internal/thread.h but spdk/thread.h It is better if the internal of poller or thread is not accessed outside lib/thread. Signed-off-by: Shuhei Matsumoto Change-Id: I80d488a111fd9a67a0da32d1e63695ce5a6bcb4c Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7776 Community-CI: Mellanox Build Bot Reviewed-by: Ben Walker Reviewed-by: Jim Harris Reviewed-by: Aleksey Marchuk Reviewed-by: Konrad Sztyber Tested-by: SPDK CI Jenkins --- lib/event/gscheduler.c | 2 +- lib/event/scheduler_dynamic.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/event/gscheduler.c b/lib/event/gscheduler.c index 4f46d304c0..ef96f8f4a2 100644 --- a/lib/event/gscheduler.c +++ b/lib/event/gscheduler.c @@ -35,7 +35,7 @@ #include "spdk/likely.h" #include "spdk_internal/event.h" -#include "spdk_internal/thread.h" +#include "spdk/thread.h" #include "spdk/log.h" #include "spdk/env.h" diff --git a/lib/event/scheduler_dynamic.c b/lib/event/scheduler_dynamic.c index ab685b4108..03003a0ab5 100644 --- a/lib/event/scheduler_dynamic.c +++ b/lib/event/scheduler_dynamic.c @@ -37,7 +37,7 @@ #include "spdk/log.h" #include "spdk/env.h" -#include "spdk_internal/thread.h" +#include "spdk/thread.h" #include "spdk_internal/event.h" static uint32_t g_next_lcore = SPDK_ENV_LCORE_ID_ANY;