Merge "snapuserd: Set taskprofile OtaProfiles" am: 33081c0f90
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2233549 Change-Id: Iebf89f9f5d104e78d9da85b89f0dfcc654b6e6ba Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
2349099be4
2 changed files with 6 additions and 0 deletions
|
|
@ -4,6 +4,7 @@ service snapuserd /system/bin/snapuserd
|
|||
disabled
|
||||
user root
|
||||
group root system
|
||||
task_profiles OtaProfiles
|
||||
seclabel u:r:snapuserd:s0
|
||||
|
||||
service snapuserd_proxy /system/bin/snapuserd -socket-handoff
|
||||
|
|
|
|||
|
|
@ -253,6 +253,11 @@ bool Worker::Init() {
|
|||
|
||||
bool Worker::RunThread() {
|
||||
SNAP_LOG(INFO) << "Processing snapshot I/O requests....";
|
||||
|
||||
if (setpriority(PRIO_PROCESS, gettid(), kNiceValueForMergeThreads)) {
|
||||
SNAP_PLOG(ERROR) << "Failed to set priority for TID: " << gettid();
|
||||
}
|
||||
|
||||
// Start serving IO
|
||||
while (true) {
|
||||
if (!ProcessIORequest()) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue