+22
−9
Loading
Make sure to cancel the scheduling during: 1) gather_metrics error (already present) 2) setting the scheduler to NULL (new) 3) shutdown of the application (new) In all of the above scheduler cannot proceed to the balance() function. Prior to this patch lack of setting g_scheduling_in_progress to false would block _start_subsystem_fini() from proceeding. Resuling in application never shutting down. thread_infos are allocated during gather_metrics, and freed on threads_reschedule. The added cleanup is used during 1) and 2). Signed-off-by:Tomasz Zawadzki <tomasz.zawadzki@intel.com> Change-Id: I5ab77c85aaa9f94bd4e1a1660b55ab2f2c47bbdc Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9326 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com>