Skip to content
Commit 8d25a086 authored by Miao Xie's avatar Miao Xie Committed by Josef Bacik
Browse files

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: default avatarMiao Xie <miaox@cn.fujitsu.com>
Signed-off-by: default avatarJosef Bacik <jbacik@fusionio.com>
parent e58dd74b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment