lib/thread: fix iterating over paused pollers
(cd83ea4a)thread: Add SPDK internal APIs spdk_thread_get_first/next_active/timed/paused_poller() Patch above by mistake iterates over active_pollers list for function that lists paused pollers. Fixes #1947 Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Change-Id: I1b69d942675f34f5f046ec46feacc8d81d89f015 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7952 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: <dongx.yi@intel.com>
This commit is contained in:
parent
ceaa0c7fa9
commit
1180c390c1
@ -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 *
|
||||
|
Loading…
x
Reference in New Issue
Block a user