]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Use the ACCESS_ONCE macro in dm-bufio and dm-verity where a variable
authorMikulas Patocka <mpatocka@redhat.com>
Sun, 14 Oct 2012 22:39:19 +0000 (09:39 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Sun, 14 Oct 2012 22:39:19 +0000 (09:39 +1100)
commita499672925830743085303465f32d16a9223b446
tree7e1d19fe3310d11b8ef756624a5cdd484b02c755
parentea290c4b40bd2c94c0a180ec273c05b2925ea85b
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>
drivers/md/dm-bufio.c
drivers/md/dm-verity.c