+14
−8
Loading
Subsequent patches will extend spdk_thread_poll() to update thread stats correctly on multiple SPDK threads per CPU core configuration as an new function spdk_thread_poll_ext(). Thread stats will be updated separately by spdk_thread_poll() and spdk_thread_poll_ext(), but updating thread stats itself is the common operation. Hence as a preparation, factor out updating thread stats operation from spdk_thread_poll() to _spdk_thread_update_stats(). Signed-off-by:Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: I93c40eb0363ca34f2150299b09c49f1401583832 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1242 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Paul Luse <paul.e.luse@intel.com> Reviewed-by:
Ben Walker <benjamin.walker@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com> Reviewed-by:
Aleksey Marchuk <alexeymar@mellanox.com>