]> git.ipfire.org Git - thirdparty/systemd.git/commit
cgroup: Make realize_queue behave FIFO
authorMichal Koutný <mkoutny@suse.com>
Fri, 1 May 2020 12:00:42 +0000 (14:00 +0200)
committerMichal Koutný <mkoutny@suse.com>
Tue, 28 Jul 2020 13:49:24 +0000 (15:49 +0200)
commita479c21ed2fda095a2e2f4b52de75487c76d332c
treea07d2b9373c178594b6b557e41eed21531fe938f
parent31363bd564021e52a192d062f18459205cbf7685
cgroup: Make realize_queue behave FIFO

The current implementation is LIFO, which is a) confusing b) prevents
some ordered operations on the cgroup tree (e.g. removing children
before parents).

Fix it quickly. Current list implementation turns this from O(1) to O(n)
operation. Rework the lists later.
src/core/cgroup.c