This change is a preparation to first dequeue the closest timed poller always when it is expired. Previously the poller_remove_timer() calls were not consistent and difficult to follow. spdk_poller_pause() sets poller to PAUSING even when it in RUNNING and move it to PAUSED after returning from its context. If spdk_poller_pause() and spdk_poller_resume() are called while poller runs, it is moved to WAITING. Hence thread_execute_poller() and thread_execute_timed_poller() ignore such cases. Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: I29340613a2ec0c3529d0886f4d81c0a0fdf8745d Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7908 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> |
||
---|---|---|
.. | ||
.gitignore | ||
Makefile | ||
thread_ut.c |