Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5377c23e authored by Bart Van Assche's avatar Bart Van Assche Committed by Automerger Merge Worker
Browse files

Merge "init: Apply the NormalIoProfile when creating a service" am: aa46531f...

Merge "init: Apply the NormalIoProfile when creating a service" am: aa46531f am: dc037aae am: 3b172577

Original change: https://android-review.googlesource.com/c/platform/system/core/+/2174788



Change-Id: Id48c01a266b7e8fcd3b7d8c4e566a213323165ce
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents b49d38c3 3b172577
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -653,6 +653,11 @@ Result<void> Service::Start() {
                       << ") failed for service '" << name_ << "'";
    }

    // When the blkio controller is mounted in the v1 hierarchy, NormalIoPriority is
    // the default (/dev/blkio). When the blkio controller is mounted in the v2 hierarchy, the
    // NormalIoPriority profile has to be applied explicitly.
    SetProcessProfiles(proc_attr_.uid, pid_, {"NormalIoPriority"});

    if (use_memcg) {
        ConfigureMemcg();
    }