OSDN Git Service

do not sleep if it is shutting down
authorKeun-young Park <keunyoung@google.com>
Thu, 3 Aug 2017 00:45:48 +0000 (17:45 -0700)
committerKeun-young Park <keunyoung@google.com>
Thu, 3 Aug 2017 00:45:48 +0000 (17:45 -0700)
commit375ac25773d0ea48b4ae63378cca4891c926627d
tree2e526d23a38c14ea14a97d121e2d216774f2d480
parent85f412b4eef816c5aab57dfa8b4e71e27b1a4fcf
do not sleep if it is shutting down

- Various sleep(5) for vold shutdown can increase shutdown time a lot.
- If it is shutting down, do not sleep at all. init will take care of
  active partitions if not unmounted.

bug: 64143519
Test: reboot and check logs from vold, check if "ShutdownThread: Shutdown wait timed out" happens.
Change-Id: I7cb91427ad2205fe23a054d255caf7ffdfd9f6c3
Utils.cpp
VolumeManager.cpp
VolumeManager.h