diff options
author | Takashi Iwai <[email protected]> | 2023-07-18 16:13:00 +0200 |
---|---|---|
committer | Takashi Iwai <[email protected]> | 2023-07-20 10:02:59 +0200 |
commit | dc438bac711d703e08cffa527db192c4b1630cd4 (patch) | |
tree | 7e5fccd7d6e4eb248bd384c80051ecaa0345cf6d /tools/perf/scripts/python/stackcollapse.py | |
parent | a3bee62e90d8fdfdbd325323106de00b3e3a729f (diff) |
staging: greybus: Avoid abusing controls_rwsem
The controls_rwsem of snd_card object is rather an internal lock, and
not really meant to be used by others for its data protection.
This patch addresses it by replacing the controls_rwsem usages with
the own (new) mutex.
Note that the up_write() and down_write() calls around
gbaudio_remove_component_controls() are simply dropped without
replacement. These temporary up/down were a workaround since
gbaudio_remove_component_controls() itself took the rwsem. Now it was
also gone, we can clean up the workaround, too.
Acked-by: Greg Kroah-Hartman <[email protected]>
Cc: Vaibhav Agarwal <[email protected]>
Cc: Mark Greer <[email protected]>
Cc: Johan Hovold <[email protected]>
Cc: Alex Elder <[email protected]>
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions