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

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