RE: [f2fs-dev] [PATCH v2] f2fs: fix to avoid potential deadlock in f2fs_record_stop_reason()
From: Daejun Park
Date: Wed Oct 23 2024 - 05:47:11 EST
Hi Chao Yu,
> ...
>
> Let's always create an asynchronous task in f2fs_handle_critical_error()
> rather than calling f2fs_record_stop_reason() synchronously to avoid
> this potential deadlock issue.
>
> Fixes: b62e71be2110 ("f2fs: support errors=remount-rocontinuepanic mountoption")
> Reported-by: syzbot+be4a9983e95a5e25c8d3@xxxxxxxxxxxxxxxxxxxxxxxxx
> Closes: https://lore.kernel.org/all/6704d667.050a0220.1e4d62.0081.GAE@xxxxxxxxxx
> Signed-off-by: Chao Yu <chao@xxxxxxxxxx>
Reviewed-by: Daejun Park <daejun7.park@xxxxxxxxxxx>