Subject: Re: [PATCH net-next v5 4/4] netconsole: Use printk context for CPU and task information

From: Breno Leitao <[email-masked]>
Date: Wed, 28 Jan 2026 08:46:10 -0800

Hello John,

On Wed, Jan 28, 2026 at 04:09:07PM +0106, John Ogness wrote:
> On 2026-01-28, Breno Leitao <[email-masked]> wrote:
> > Use the CPU and task name captured at printk() time from
> > nbcon_write_context instead of querying the current execution context.
> > This provides accurate information about where the message originated,
> > rather than where netconsole happens to be running.
> >
> > For CPU, use wctxt->cpu instead of raw_smp_processor_id().
> >
> > For taskname, use wctxt->comm directly which contains the task
> > name captured at printk time.
> >
> > This change ensures netconsole outputs reflect the actual context that
> > generated the log message, which is especially important when the
> > console driver runs asynchronously in a dedicated thread.
> >
> > Signed-off-by: Breno Leitao <[email-masked]>
> 
> Reviewed-by: John Ogness <[email-masked]>

Thank you so much for all the reviews and your support throughout this
migration. I really appreciate it!

---breno