Re: [PATCH 1/4] writeback: add the missing newline to the slow writeback report
From: Jan Kara
Date: Fri Nov 06 2026 - 09:23:49 EST
On Fri 06-11-26 04:26:31, Breno Leitao wrote:
> wb_wait_for_completion_cb() reports a writeback wait that exceeds
> hung_task_timeout_secs with a pr_info() that has no trailing newline.
> printk() keeps such a record open for a continuation and does not
> finalize it, so dmesg, the consoles and netconsole only see the report
> once the next message is logged.
>
> Terminate the message with a newline.
>
> Fixes: d6e621590764 ("writeback: Add logging for slow writeback (exceeds sysctl_hung_task_timeout_secs)")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Breno Leitao <leitao@xxxxxxxxxx>
Sure. Feel free to add:
Reviewed-by: Jan Kara <jack@xxxxxxx>
Honza
> ---
> fs/fs-writeback.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c
> index 15260cf2a29b09..01a00d7542b371 100644
> --- a/fs/fs-writeback.c
> +++ b/fs/fs-writeback.c
> @@ -204,7 +204,7 @@ static bool wb_wait_for_completion_cb(struct wb_completion *done)
> done->progress_stamp = jiffies;
> if (timeout && (waited_secs > timeout))
> pr_info("INFO: The task %s:%d has been waiting for writeback "
> - "completion for more than %lu seconds.",
> + "completion for more than %lu seconds.\n",
> current->comm, current->pid, waited_secs);
>
> return !atomic_read(&done->cnt);
>
> --
> 2.53.0-Meta
>
--
Jan Kara <jack@xxxxxxxx>
SUSE Labs, CR