]> 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>
Thu, 20 Sep 2012 23:40:13 +0000 (09:40 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 20 Sep 2012 23:40:13 +0000 (09:40 +1000)
commit8b3521524e4c61abad04b11dd5be409dca6c01b0
tree84ae18775cad054a268c995f2121357ce6b9a9ce
parent584ccecacbd6d5362513b6fedb35d5fdafd2a9c3
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