diff options
| author | Haotian Zhang <vulab@iscas.ac.cn> | 2026-07-11 22:21:55 +0800 |
|---|---|---|
| committer | Mikulas Patocka <mpatocka@redhat.com> | 2026-07-15 15:52:19 +0200 |
| commit | c7391ebe33162c7962b313caea4d8e6b0bc2a671 (patch) | |
| tree | 802843b91b7abbd2c4faaacabbf8076925eadb8f /tools/perf/scripts/python/parallel-perf.py | |
| parent | 00211ede62facec2915a7e6cfc17f8ce987a0078 (diff) | |
dm-switch: use WRITE_ONCE() in switch_region_table_write()
switch_region_table_read() accesses the region table with READ_ONCE()
and is called from the lockless switch_map() IO path. However,
switch_region_table_write() stores to the same array with a plain
assignment. This results in an inconsistent access pattern for a
lockless shared variable and may trigger data race reports.
Use WRITE_ONCE() to pair with the existing READ_ONCE() in
switch_region_table_read().
Cc: stable@vger.kernel.org
Fixes: 99eb1908e643 ("dm switch: factor out switch_region_table_read")
Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/parallel-perf.py')
0 files changed, 0 insertions, 0 deletions
