diff options
author | Chao Yu <chao@kernel.org> | 2023-01-09 11:44:51 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2023-01-31 10:48:13 -0800 |
commit | ae267fc1cfe9f941afcb90dc963ee6448dae73cf (patch) | |
tree | be01a351cab1bc7607dcc75073ae19edc85ee5af /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | e6261beb0c629403dc58997294dd521bd23664af (diff) |
f2fs: fix to abort atomic write only during do_exist()
Commit 7a10f0177e11 ("f2fs: don't give partially written atomic data
from process crash") attempted to drop atomic write data after process
crash, however, f2fs_abort_atomic_write() may be called from noncrash
case, fix it by adding missed PF_EXITING check condition
f2fs_file_flush().
- application crashs
- do_exit
- exit_signals -- sets PF_EXITING
- exit_files
- put_files_struct
- close_files
- filp_close
- flush (f2fs_file_flush)
- check atomic_write_task && PF_EXITING
- f2fs_abort_atomic_write
Fixes: 7a10f0177e11 ("f2fs: don't give partially written atomic data from process crash")
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions