diff options
| author | Yongpeng Yang <yangyongpeng@xiaomi.com> | 2025-12-15 23:21:04 +0800 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2025-12-15 09:32:42 -0700 |
| commit | 54891a96b7a90d77c32bd0a7d6c9987e5479a314 (patch) | |
| tree | c3b647b331056845a14d800bb19612fa34b2f731 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 9869d3a6fed381f3b98404e26e1afc75d680cbf9 (diff) | |
loop: use READ_ONCE() to read lo->lo_state without locking
When lo->lo_mutex is not held, direct access may read stale data. This
patch uses READ_ONCE() to read lo->lo_state and data_race() to silence
code checkers, and changes all assignments to use WRITE_ONCE().
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Signed-off-by: Yongpeng Yang <yangyongpeng@xiaomi.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
