HomeClusterLabs Projects

API: libpe_status: add pe_rsc_detect_loop constant

Description

API: libpe_status: add pe_rsc_detect_loop constant

The scheduler's resource assignment code uses pe_rsc_allocating to detect loops
in the assignment. This constant was overloaded elsewhere to detect loops in
other situations, but that is undesirable because it prevents pe_rsc_allocating
from being used to detect whether a resource is in the process of being
assigned.

Add pe_rsc_detect_loop for the other situations, and use it there.

Details

Provenance
kgaillotAuthored on Nov 17 2022, 12:35 PM
Parents
rPa6c9512bfdfd: Low: scheduler: order cloned fence device probes same as other clones
Branches
Unknown
Tags
Unknown