diff options
author | Daeho Jeong <[email protected]> | 2020-05-27 13:02:31 +0900 |
---|---|---|
committer | Jaegeuk Kim <[email protected]> | 2020-05-28 12:00:43 -0700 |
commit | fd6126484ceaa9d94db196931c10454090f3d677 (patch) | |
tree | cc4ccc4f2118cca281e3a745228cd917b5169f3a /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 195f406543e555611330b98ea8c21f113a192fc3 (diff) |
f2fs: protect new segment allocation in expand_inode_data
Found a new segemnt allocation without f2fs_lock_op() in
expand_inode_data(). So, when we do fallocate() for a pinned file
and trigger checkpoint very frequently and simultaneously. F2FS gets
stuck in the below code of do_checkpoint() forever.
f2fs_sync_meta_pages(sbi, META, LONG_MAX, FS_CP_META_IO);
/* Wait for all dirty meta pages to be submitted for IO */
<= if fallocate() here,
f2fs_wait_on_all_pages(sbi, F2FS_DIRTY_META); <= it'll wait forever.
Signed-off-by: Daeho Jeong <[email protected]>
Reviewed-by: Chao Yu <[email protected]>
Signed-off-by: Jaegeuk Kim <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions