diff --git a/lib/thread/thread.c b/lib/thread/thread.c index c07fbe15d..3cee7de00 100644 --- a/lib/thread/thread.c +++ b/lib/thread/thread.c @@ -1703,7 +1703,7 @@ spdk_thread_get_next_timed_poller(struct spdk_poller *prev) struct spdk_poller * spdk_thread_get_first_paused_poller(struct spdk_thread *thread) { - return TAILQ_FIRST(&thread->active_pollers); + return TAILQ_FIRST(&thread->paused_pollers); } struct spdk_poller *