diff options
author | 2016-06-02 14:15:56 -0700 | |
---|---|---|
committer | 2016-06-07 09:45:40 -0700 | |
commit | 1e7c48fa9a34556639328d50780d12a304e0bb6d (patch) | |
tree | 9a974e4a957ecd15d9d87888e673fe0d6b864f6f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | f2fs: remove obsolete parameter in f2fs_truncate (diff) | |
download | linux-rng-1e7c48fa9a34556639328d50780d12a304e0bb6d.tar.xz linux-rng-1e7c48fa9a34556639328d50780d12a304e0bb6d.zip |
f2fs: avoid data race between FI_DIRTY_INODE flag and update_inode
FI_DIRTY_INODE flag is not covered by inode page lock, so it can be unset
at any time like below.
Thread #1 Thread #2
- lock_page(ipage)
- update i_fields
- update i_size/i_blocks/and so on
- set FI_DIRTY_INODE
- reset FI_DIRTY_INODE
- set_page_dirty(ipage)
In this case, we can lose the latest i_field information.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions