diff options
author | Mikulas Patocka <[email protected]> | 2012-10-12 16:59:46 +0100 |
---|---|---|
committer | Alasdair G Kergon <[email protected]> | 2012-10-12 16:59:46 +0100 |
commit | fe5fe90639b62a75349dd1f1c74c4a984397171c (patch) | |
tree | 50332fca2fb4ff5851c4e1bfd8151d41ba83d781 /lib/string_helpers.c | |
parent | 54499afbb80e44ae5511984486b4b33d6229fceb (diff) |
dm: use ACCESS_ONCE for sysfs values
Use the ACCESS_ONCE macro in dm-bufio and dm-verity where a variable
can be modified asynchronously (through sysfs) and we want to prevent
compiler optimizations that assume that the variable hasn't changed.
(See Documentation/atomic_ops.txt.)
Signed-off-by: Mikulas Patocka <[email protected]>
Signed-off-by: Alasdair G Kergon <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions