diff options
author | Li Lingfeng <[email protected]> | 2023-12-29 15:05:00 +0800 |
---|---|---|
committer | Song Liu <[email protected]> | 2024-02-05 15:23:58 -0800 |
commit | 9cfcf99e7ed613e6b3697e1c1034a24487ec3154 (patch) | |
tree | c13b5cef52ef3e3bf9d144abe0b48e778aeb433c /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
parent | faeaf210a559eb05bc1a294082d100d01c49a1e9 (diff) |
md: get rdev->mddev with READ_ONCE()
Users may get rdev->mddev by sysfs while rdev is releasing.
So use both READ_ONCE() and WRITE_ONCE() to prevent load/store tearing
and to read/write mddev atomically.
Signed-off-by: Li Lingfeng <[email protected]>
Reviewed-by: Yu Kuai <[email protected]>
Signed-off-by: Song Liu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions