diff options
author | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2024-01-05 17:08:36 +0100 |
---|---|---|
committer | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2024-02-12 10:50:40 +0100 |
commit | 1f2bcb8c8ccdf9dc2e46f7986e1e22408506a6d6 (patch) | |
tree | aeace51dfc6b2e69e1fd3ac751f73faf6f64d57b /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | be711caa87c5c81d5dc00b244cac3a0b775adb18 (diff) |
gpio: protect the descriptor label with SRCU
In order to ensure that the label is not freed while it's being
accessed, let's protect it with SRCU and synchronize it everytime it's
changed.
Let's modify desc_set_label() to manage the memory used for the label as
it can only be freed once synchronize_srcu() returns.
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions