1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-23 17:34:00 +03:00

basic: reorder UnitType enum

The enum order will be used to order jobs in the job queue.
Make sure that unit types that fork aditional processes come first to
maximize parallelism.
This commit is contained in:
Michael Olbrich 2019-07-03 16:11:47 +02:00
parent 31a83062fb
commit fcfc7e1137

View File

@ -5,14 +5,17 @@
#include "macro.h"
/* The enum order is used to order unit jobs in the job queue
* when other criteria (cpu weight, nice level) are identical.
* In this case service units have the hightest priority. */
typedef enum UnitType {
UNIT_SERVICE = 0,
UNIT_MOUNT,
UNIT_SWAP,
UNIT_SOCKET,
UNIT_TARGET,
UNIT_DEVICE,
UNIT_MOUNT,
UNIT_AUTOMOUNT,
UNIT_SWAP,
UNIT_TIMER,
UNIT_PATH,
UNIT_SLICE,