event/reactor: update last_action for timer pollers

Include timer-based pollers in the active/idle check that uses
last_action to determine when a reactor last executed an action.

Change-Id: Ib8f1253675b57aeb59206d099c6257f6d07f5acf
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
Daniel Verkamp 2017-01-12 14:04:01 -07:00
parent d2c0feac8a
commit 4a95a81e69

View File

@ -345,6 +345,7 @@ _spdk_reactor_run(void *arg)
poller->state = SPDK_POLLER_STATE_WAITING; poller->state = SPDK_POLLER_STATE_WAITING;
spdk_poller_insert_timer(reactor, poller, now); spdk_poller_insert_timer(reactor, poller, now);
} }
last_action = spdk_get_ticks();
} }
} }