Merge "vold: fix the range of stopped state of idleMaint" into tm-dev
This commit is contained in:
commit
baee102002
1 changed files with 5 additions and 5 deletions
|
@ -450,17 +450,17 @@ int RunIdleMaint(bool needGC, const android::sp<android::os::IVoldTaskListener>&
|
||||||
stopGc(paths);
|
stopGc(paths);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!gc_aborted) {
|
||||||
|
Trim(nullptr);
|
||||||
|
runDevGc();
|
||||||
|
}
|
||||||
|
|
||||||
lk.lock();
|
lk.lock();
|
||||||
idle_maint_stat = IdleMaintStats::kStopped;
|
idle_maint_stat = IdleMaintStats::kStopped;
|
||||||
lk.unlock();
|
lk.unlock();
|
||||||
|
|
||||||
cv_stop.notify_one();
|
cv_stop.notify_one();
|
||||||
|
|
||||||
if (!gc_aborted) {
|
|
||||||
Trim(nullptr);
|
|
||||||
runDevGc();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (listener) {
|
if (listener) {
|
||||||
android::os::PersistableBundle extras;
|
android::os::PersistableBundle extras;
|
||||||
listener->onFinished(0, extras);
|
listener->onFinished(0, extras);
|
||||||
|
|
Loading…
Reference in a new issue