commit | ebe24b5f67bfcaf7b2a6a8be7078eed23518e492 | [log] [tgz] |
---|---|---|
author | Jeff Sharkey <jsharkey@android.com> | Tue Apr 21 14:41:44 2020 -0600 |
committer | Jeff Sharkey <jsharkey@android.com> | Tue Apr 21 14:42:46 2020 -0600 |
tree | 24d5d04af460d3612c425c794daf405d6496c538 | |
parent | 1307d17a644e4f8c0192eb5c3a1efadc66fb9bb9 [diff] |
Fix lock inversion bug. To avoid deadlocking, we need to ensure consistent lock ordering, and we nominate mDirectoryCache to be a finer-grain lock when compared to database transactions. Bug: 154107764 Test: atest --test-mapping packages/providers/MediaProvider Change-Id: Ide47ca8c067f1f416b119011203c3b5fb82531b9