diff mbox series

[f2fs-dev,2/2] f2fs: add dump_stack() in f2fs_handle_critical_error()

Message ID 20250212015413.666375-2-chao@kernel.org (mailing list archive)
State Accepted
Commit 4f91f074702af3931a35c244470ae0c4b66f909c
Headers show
Series [f2fs-dev,1/2] f2fs: don't retry IO for corrupted data scenario | expand

Commit Message

Chao Yu Feb. 12, 2025, 1:54 a.m. UTC
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>
---
 fs/f2fs/super.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 24ded06c8980..1af78b75906b 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -4221,6 +4221,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