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@vger.kernel.org Reviewed-by: Jan Kara Signed-off-by: Breno Leitao --- 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