diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2018-12-28 22:00:38 +0300 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2019-01-08 20:34:27 +0300 |
commit | 31867b23d7d1ee3535136c6a410a6cf56f666bfc (patch) | |
tree | 0e6b0c05ad5238939bf52b8d424be76a7462f6b0 /fs/f2fs/debug.c | |
parent | 3bd6e94bec122a951d462c239b47954cf5f36e33 (diff) | |
download | linux-31867b23d7d1ee3535136c6a410a6cf56f666bfc.tar.xz |
f2fs: wait on atomic writes to count F2FS_CP_WB_DATA
Otherwise, we can get wrong counts incurring checkpoint hang.
IO_W (CP: -24, Data: 24, Flush: ( 0 0 1), Discard: ( 0 0))
Thread A Thread B
- f2fs_write_data_pages
- __write_data_page
- f2fs_submit_page_write
- inc_page_count(F2FS_WB_DATA)
type is F2FS_WB_DATA due to file is non-atomic one
- f2fs_ioc_start_atomic_write
- set_inode_flag(FI_ATOMIC_FILE)
- f2fs_write_end_io
- dec_page_count(F2FS_WB_CP_DATA)
type is F2FS_WB_DATA due to file becomes
atomic one
Cc: <stable@vger.kernel.org>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/debug.c')
0 files changed, 0 insertions, 0 deletions