Loading
scheduler_dynamic: prioritize g_main_lcore during _find_optimal_core
_find_optimal_core was always consolidating idle threads to g_main_lcore. Meanwhile for active threads lower lcore id were prioritized over the higher ones. So long as g_main_lcore can fit the active thread, it should be prioritized over any other. Regardless of the lcore id. Fix #2080 Signed-off-by:Tomasz Zawadzki <tomasz.zawadzki@intel.com> Change-Id: I30b3a7353bcf243d4362b4db9dde5446c435d675 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9243 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com> Reviewed-by:
Changpeng Liu <changpeng.liu@intel.com>