Merge "vold: fix the range of stopped state of idleMaint" into tm-dev

This commit is contained in:
Daeho Jeong 2022-05-20 21:15:13 +00:00 committed by Android (Google) Code Review
commit baee102002

View file

@ -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);