writeback: Add logging for slow writeback (exceeds sysctl_hung_task_timeout_secs)

When a writeback work lasts for sysctl_hung_task_timeout_secs, we want
to identify that there are tasks waiting for a long time-this helps us
pinpoint potential issues.

Additionally, recording the starting jiffies is useful when debugging a
crashed vmcore.

Signed-off-by: Julian Sun <sunjunchao@bytedance.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
Julian Sun 2025-09-30 15:18:29 +08:00 • committed by Christian Brauner
commit d6e6215907
No known key found for this signature in database
GPG key ID: 91C61BC06578DCA2
2 changed files with 16 additions and 2 deletions