lib/event: update reactor tsc_last going poll mode
Disabling interrupt mode on reactor now updates the tsc_last to current time. So any further tsc caulations will not account for the time when reactor was in interrupt mode. Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Change-Id: I56fb8a738eea60ee5de3b49d586f7cb228b54510 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7901 Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot
This commit is contained in:
parent
7438c388a0
commit
a5ad0f8051
@ -363,6 +363,9 @@ _reactor_set_notify_cpuset_cpl(void *arg1, void *arg2)
|
||||
struct spdk_reactor *target = arg1;
|
||||
|
||||
if (target->new_in_interrupt == false) {
|
||||
/* Reactor is no longer in interrupt mode. Refresh the tsc_last to accurately
|
||||
* track reactor stats. */
|
||||
target->tsc_last = spdk_get_ticks();
|
||||
target->set_interrupt_mode_in_progress = false;
|
||||
spdk_thread_send_msg(_spdk_get_app_thread(), target->set_interrupt_mode_cb_fn,
|
||||
target->set_interrupt_mode_cb_arg);
|
||||
|
Loading…
Reference in New Issue
Block a user