diff options
author | 2014-02-20 18:08:51 +0800 | |
---|---|---|
committer | 2014-03-10 15:16:39 -0400 | |
commit | 5c902ba6223f6a6575054226931fafc51314a25f (patch) | |
tree | dc43b931ac9d6ad7006093db05a8517fadba9320 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Btrfs: avoid warning bomb of btrfs_invalidate_inodes (diff) | |
download | linux-dev-5c902ba6223f6a6575054226931fafc51314a25f.tar.xz linux-dev-5c902ba6223f6a6575054226931fafc51314a25f.zip |
Btrfs: use ACCESS_ONCE to prevent the optimize accesses to ->last_trans_log_full_commit
->last_trans_log_full_commit may be changed by the other tasks without lock,
so we need prevent the compiler from the optimize access just like
tmp = fs_info->last_trans_log_full_commit
if (tmp == ...)
...
<do something>
if (tmp == ...)
...
In fact, we need get the new value of ->last_trans_log_full_commit during
the second access. Fix it by ACCESS_ONCE().
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fb.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions