diff options
author | 2024-04-03 23:07:53 +0000 | |
---|---|---|
committer | 2024-04-12 20:58:35 +0000 | |
commit | 3bdb7f161697e2d5123b89fe1778ef17a44858e7 (patch) | |
tree | 5390b9fd1cf4617a8e0a1bf707826df54933bd07 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | f2fs: fix to check pinfile flag in f2fs_move_file_range() (diff) | |
download | wireguard-linux-3bdb7f161697e2d5123b89fe1778ef17a44858e7.tar.xz wireguard-linux-3bdb7f161697e2d5123b89fe1778ef17a44858e7.zip |
f2fs: don't set RO when shutting down f2fs
Shutdown does not check the error of thaw_super due to readonly, which
causes a deadlock like below.
f2fs_ioc_shutdown(F2FS_GOING_DOWN_FULLSYNC) issue_discard_thread
- bdev_freeze
- freeze_super
- f2fs_stop_checkpoint()
- f2fs_handle_critical_error - sb_start_write
- set RO - waiting
- bdev_thaw
- thaw_super_locked
- return -EINVAL, if sb_rdonly()
- f2fs_stop_discard_thread
-> wait for kthread_stop(discard_thread);
Reported-by: "Light Hsieh (謝明燈)" <Light.Hsieh@mediatek.com>
Reviewed-by: Daeho Jeong <daehojeong@google.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions