am ae9c8297: am acd574c1: am 7a67c335: Merge "Modify the code to avoid potential deadlocks."

* commit 'ae9c829777449e63c41268a6a6f4c53ff13357e4':
  Modify the code to avoid potential deadlocks.