f2fs: add dump_stack() in f2fs_handle_critical_error()
authorChao Yu <chao@kernel.org>
Wed, 12 Feb 2025 01:54:13 +0000 (09:54 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 12 Feb 2025 02:28:22 +0000 (02:28 +0000)
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 <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/super.c

index 1beff52ae80b36614337537caf36af569867e522..759b642991d4ad3e55c9ef006f8f93aea12f6e5a 100644 (file)
@@ -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