Merge "snapuserd: Set taskprofile OtaProfiles"
This commit is contained in:
commit
33081c0f90
2 changed files with 6 additions and 0 deletions
|
|
@ -4,6 +4,7 @@ service snapuserd /system/bin/snapuserd
|
||||||
disabled
|
disabled
|
||||||
user root
|
user root
|
||||||
group root system
|
group root system
|
||||||
|
task_profiles OtaProfiles
|
||||||
seclabel u:r:snapuserd:s0
|
seclabel u:r:snapuserd:s0
|
||||||
|
|
||||||
service snapuserd_proxy /system/bin/snapuserd -socket-handoff
|
service snapuserd_proxy /system/bin/snapuserd -socket-handoff
|
||||||
|
|
|
||||||
|
|
@ -253,6 +253,11 @@ bool Worker::Init() {
|
||||||
|
|
||||||
bool Worker::RunThread() {
|
bool Worker::RunThread() {
|
||||||
SNAP_LOG(INFO) << "Processing snapshot I/O requests....";
|
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
|
// Start serving IO
|
||||||
while (true) {
|
while (true) {
|
||||||
if (!ProcessIORequest()) {
|
if (!ProcessIORequest()) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue