[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20090626.192804.199785674.davem@davemloft.net>
Date: Fri, 26 Jun 2009 19:28:04 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: herbert@...dor.apana.org.au
Cc: dhananjay.phadke@...gic.com, akpm@...ux-foundation.org,
bugme-daemon@...zilla.kernel.org, netdev@...r.kernel.org,
bugzilla-daemon@...zilla.kernel.org, amit.salecha@...gic.com
Subject: Re: [Bugme-new] [Bug 13617] New: GRO:__napi_complete from
net_rx_action crash
From: Herbert Xu <herbert@...dor.apana.org.au>
Date: Sat, 27 Jun 2009 09:49:00 +0800
> On Fri, Jun 26, 2009 at 10:24:58AM -0700, David Miller wrote:
>>
>> >>> In net_rx_action, there is check if napi_disable_pending then call
>> >>> __napi_complete.
>> >>> In __napi_complete, there is BUG_ON(n->gro_list);
>> >>> Which has hit in below bug dump.
>> >>> Why __napi_complete is called from net_rx_action instead of napi_complete.
>> >>> napi_complete flushes the gro list.
>
> Indeed, it was an oversight. Thanks for catching it!
>
> gro: Flush GRO packets in napi_disable_pending path
>
> When NAPI is disabled while we're in net_rx_action, we end up
> calling __napi_complete without flushing GRO packets. This is
> a bug as it would cause the GRO packets to linger, of course it
> also literally BUGs to catch error like this :)
>
> This patch changes it to napi_complete, with the obligatory IRQ
> reenabling. This should be safe because we've only just disabled
> IRQs and it does not materially affect the test conditions in
> between.
>
> Signed-off-by: Herbert Xu <herbert@...dor.apana.org.au>
Applied.
I remembered that change where we had to disable GRO in the
legacy RX path and all the IRQ disabling problems we ran into
there. So I went and had a look at that to make sure we won't
have similar issues here, luckily it seems not.
Thanks!
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists