vold: retry mounting partition
Works around a race condition between the vold and MountService uevent handlers
Change-Id: I71c92f2e9b92e1fefc192da166a91d81bc60e242
Signed-off-by: Mike Lockwood <lockwood@android.com>
diff --git a/DirectVolume.cpp b/DirectVolume.cpp
index 7e8ac68..fa3eb9a 100644
--- a/DirectVolume.cpp
+++ b/DirectVolume.cpp
@@ -220,6 +220,10 @@
#endif
if (getState() != Volume::State_Formatting) {
setState(Volume::State_Idle);
+ if (mRetryMount == true) {
+ mRetryMount = false;
+ mountVol();
+ }
}
} else {
#ifdef PARTITION_DEBUG