]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: Add ACCESS_ONCE() to transaction->abort accesses
authorMiao Xie <miaox@cn.fujitsu.com>
Tue, 15 Jan 2013 06:27:25 +0000 (06:27 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Thu, 24 Jan 2013 17:51:23 +0000 (12:51 -0500)
commit1aef70ed0d5ef25a42c4ad9be2086a245da8c922
tree075e3a0e731b08a418ad65dfd4e0bb53818a40c1
parentebbb6cc9b504c3dace9f6c4e0d16d337bf37efc3
Btrfs: Add ACCESS_ONCE() to transaction->abort accesses

We may access and update transaction->aborted on the different CPUs without
lock, so we need ACCESS_ONCE() wrapper to prevent the compiler from creating
unsolicited accesses and make sure we can get the right value.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/super.c
fs/btrfs/transaction.c