diff options
author | 2018-04-17 17:51:28 +0800 | |
---|---|---|
committer | 2018-05-31 11:31:46 -0700 | |
commit | 27319ba4044c0c67d62ae39e53c0118c89f0a029 (patch) | |
tree | d87c4e0a30ee43eb9219bc18403f359d07d737fd /tools/perf/scripts/python/export-to-postgresql.py | |
parent | fs: f2fs: Adding new return type vm_fault_t (diff) | |
download | wireguard-linux-27319ba4044c0c67d62ae39e53c0118c89f0a029.tar.xz wireguard-linux-27319ba4044c0c67d62ae39e53c0118c89f0a029.zip |
f2fs: fix race in between GC and atomic open
Thread GC thread
- f2fs_ioc_start_atomic_write
- get_dirty_pages
- filemap_write_and_wait_range
- f2fs_gc
- do_garbage_collect
- gc_data_segment
- move_data_page
- f2fs_is_atomic_file
- set_page_dirty
- set_inode_flag(, FI_ATOMIC_FILE)
Dirty data page can still be generated by GC in race condition as
above call stack.
This patch adds fi->dio_rwsem[WRITE] in f2fs_ioc_start_atomic_write
to avoid such race.
Signed-off-by: Chao Yu <yuchao0@huawei.com>
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