From 4f91f074702af3931a35c244470ae0c4b66f909c Mon Sep 17 00:00:00 2001 From: Chao Yu Date: Wed, 12 Feb 2025 09:54:13 +0800 Subject: [PATCH] f2fs: add dump_stack() in f2fs_handle_critical_error() To show call stack, so that we can see who causes critical error, note that it won't call dump_stack() for shutdown path. Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim --- fs/f2fs/super.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 1beff52ae80b3..759b642991d4a 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -4250,6 +4250,8 @@ void f2fs_handle_critical_error(struct f2fs_sb_info *sbi, unsigned char reason) if (shutdown) set_sbi_flag(sbi, SBI_IS_SHUTDOWN); + else + dump_stack(); /* * Continue filesystem operators if errors=continue. Should not set -- 2.47.3