netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jakub Kicinski <kuba@kernel.org>
To: Zqiang <qiang.zhang@linux.dev>
Cc: horms@kernel.org, davem@davemloft.net, pabeni@redhat.com,
	netdev@vger.kernel.org
Subject: Re: [PATCH] usbnet: Fix using smp_processor_id() in preemptible code warnings
Date: Tue, 30 Sep 2025 10:30:18 -0700	[thread overview]
Message-ID: <20250930103018.74d5f85b@kernel.org> (raw)
In-Reply-To: <20250930084636.5835-1-qiang.zhang@linux.dev>

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.
-- 
pw-bot: cr

  reply	other threads:[~2025-09-30 17:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-30  8:46 [PATCH] usbnet: Fix using smp_processor_id() in preemptible code warnings Zqiang
2025-09-30 17:30 ` Jakub Kicinski [this message]
2025-10-01  0:39   ` Zqiang
2025-10-01  0:43     ` Jakub Kicinski
2025-10-01  0:56       ` Zqiang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250930103018.74d5f85b@kernel.org \
    --to=kuba@kernel.org \
    --cc=davem@davemloft.net \
    --cc=horms@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=qiang.zhang@linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).