summaryrefslogtreecommitdiffstats
path: root/lib/locking-selftest-mutex.h
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2012-10-12 17:59:46 +0200
committerAlasdair G Kergon <agk@redhat.com>2012-10-12 17:59:46 +0200
commitfe5fe90639b62a75349dd1f1c74c4a984397171c (patch)
tree50332fca2fb4ff5851c4e1bfd8151d41ba83d781 /lib/locking-selftest-mutex.h
parentdm bufio: use list_move (diff)
downloadlinux-fe5fe90639b62a75349dd1f1c74c4a984397171c.tar.xz
linux-fe5fe90639b62a75349dd1f1c74c4a984397171c.zip
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 <mpatocka@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'lib/locking-selftest-mutex.h')
0 files changed, 0 insertions, 0 deletions