Subject: Re: [PATCH] usbnet: Fix using smp_processor_id() in preemptible code warnings

From: "Zqiang" <[email-masked]>
Date: Wed, 01 Oct 2025 00:39:18 +0000

> 
> On Tue, 30 Sep 2025 16:46:36 +0800 Zqiang wrote:
> 
> > 
> > The usbnet_skb_return() can be invoked in preemptible task-context,
> >  this commit therefore use get_cpu_ptr/put_cpu_ptr() instead of
> >  this_cpu_ptr() to get stats64 pointer.
> > 
> We also call netif_rx() which historically wanted to be in bh context.
> I think that disabling bh in usbnet_resume_rx() may be a better idea.

Actually, the netif_rx() will disable bh internally when call from
process context.
but the skb_defer_rx_timestamp() is usually called in the bh or
interrupt context.

Anyway, I will disable bh in usbnet_resume_rx() and resend.

Thanks
Zqiang

> -- 
> pw-bot: cr