Please sign in to comment.
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 <email@example.com> Signed-off-by: Josef Bacik <firstname.lastname@example.org>
- Loading branch information...
Showing with 3 additions and 2 deletions.