From 5b224dc33767649c9136629dbbac8baabc0c0f26 Mon Sep 17 00:00:00 2001 From: Li Chong Date: Mon, 24 Jul 2023 11:29:40 +0800 Subject: [PATCH] vold: fix idlemaint abort may hold the wakelock when the idlemaint run is working, if two or more idlemaint abort concurrency are working. all idlemaint abort will hold the wakelock, until idlemaint run finished, but it just nofity one idlemaint abort thread to stop and release the wakelock. Remaining idlemaint abort threads will hold the wakelock until next idlemaint run to notify them. Bug: 292383791 Test: see the issue Description Change-Id: I5312be2e0e92c41483cab26e627a4ae562e5aed8 --- IdleMaint.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IdleMaint.cpp b/IdleMaint.cpp index fedfc3d..1a6c0a6 100644 --- a/IdleMaint.cpp +++ b/IdleMaint.cpp @@ -436,7 +436,7 @@ int RunIdleMaint(bool needGC, const android::sp& idle_maint_stat = IdleMaintStats::kStopped; lk.unlock(); - cv_stop.notify_one(); + cv_stop.notify_all(); if (listener) { android::os::PersistableBundle extras;