summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/proc.py
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2022-09-02 13:39:51 +0200
committerMauro Carvalho Chehab <mchehab@kernel.org>2022-09-24 10:05:14 +0200
commit2468083f799eb9eef7b03f48ebb9673ad5655f88 (patch)
treeeadb410538fedcd2ab331b1ef6920b91e4fdd2c8 /scripts/gdb/linux/proc.py
parentd33a6d321078b66b9dd0a87413827ed178dd1779 (diff)
media: atomisp: Fix locking around asd->streaming read/write
For reading / writing the asd->streaming enum the following rules should be followed: 1. Writers of streaming must hold both isp->mutex and isp->lock. 2. Readers of streaming need to hold only one of the two locks. Not all writers where properly taking both locks this fixes this. In the case of the readers, many readers depend on their caller to hold isp->mutex, add asserts for this And in the case of atomisp_css_get_dis_stat() it is called with isp->mutex held, so there is no need to take the spinlock just for reading the streaming value. Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions