commit | 2e148f187383b863b32ef8690cda8a3df5e9a7c6 | [log] [tgz] |
---|---|---|
author | Atneya Nair <atneya@google.com> | Wed Aug 28 17:05:50 2024 -0700 |
committer | Atneya Nair <atneya@google.com> | Wed Aug 28 17:05:50 2024 -0700 |
tree | 6307074d77ca6f338761f19bb1557600e0f15dba | |
parent | 4f667c4e6149f87630e1abe426e4629b9ab9e949 [diff] |
audio: Fix permission update race There are some subtle races on iterating over a concurrent queue and aligning the task queue to the scheduler ordering. Move to an explicitly lock a regular list, which is fine since the lock is sparsely contended, has extremely tight critical sections, and is easier to reason about. Test: Manual + Cts Flag: com.android.media.audio.audioserver_permissions Bug: 362409920 Change-Id: I63c473d64a9b4b687c46b11dec882ea295ce6d36