diff options
author | Lukáš Nykrýn <lnykryn@redhat.com> | 2016-06-14 14:20:56 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-06-14 14:20:56 +0200 |
commit | 4892084f096c19da0e83f28f250ca187b58c22b2 (patch) | |
tree | d719664eb002fb77c29ed4d3944d0b3ebc4a9e32 /src/network | |
parent | bbc85a16e12083fdf13215c07a57ad7a5fb56ef8 (diff) |
manager: reduce complexity of unit_gc_sweep (#3507)
When unit is marked as UNSURE, we are trying to find if it state was
changed over and over again. So lets not go through the UNSURE states
again. Also when we find a GOOD unit lets propagate the GOOD state to
all units that this unit reference.
This is a problem on machines with a lot of initscripts with different
starting priority, since those units will reference each other and the
original algorithm might get to n! complexity.
Thanks HATAYAMA Daisuke for the expand_good_state code.
Diffstat (limited to 'src/network')
0 files changed, 0 insertions, 0 deletions