[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250911073829.5f1bb612@kernel.org>
Date: Thu, 11 Sep 2025 07:38:29 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Samiullah Khawaja <skhawaja@...gle.com>
Cc: "David S . Miller" <davem@...emloft.net>, Eric Dumazet
<edumazet@...gle.com>, Paolo Abeni <pabeni@...hat.com>, willemb@...gle.com,
netdev@...r.kernel.org, mkarsten@...terloo.ca
Subject: Re: [PATCH net] net: Use NAPI_* in test_bit when stopping napi
kthread
On Thu, 11 Sep 2025 07:31:11 -0700 Samiullah Khawaja wrote:
> > > Is this basically addressing the bug that Martin run into?
> > Not really. That one was because the busy polling bit remained set
> > during kthread stop. Basically in this function when we unset
> > STATE_THREADED, we also needed to unset STATE_THREADED_BUSY_POLL.
> >
> > @@ -7000,7 +7002,8 @@ static void napi_stop_kthread(struct napi_struct *napi)
> > */
> > if ((val & NAPIF_STATE_SCHED_THREADED) ||
> > !(val & NAPIF_STATE_SCHED)) {
> > - new = val & (~NAPIF_STATE_THREADED);
> > + new = val & (~(NAPIF_STATE_THREADED |
> > + NAPIF_STATE_THREADED_BUSY_POLL));
> >
> Just to add to my last email: I did find this test_bit issue while
> working on the fix for that other problem.
I see, makes sense. I was curious whether your previous posting would
work with just this fix. I guess we'll wait until next week 'cause
this fix didn't make it to today's PR in time :(
Powered by blists - more mailing lists