From: David Miller <davem@davemloft.net>
To: nemoto@toshiba-tops.co.jp
Cc: vbridger@opensource.altera.com, netdev@vger.kernel.org,
eric.dumazet@gmail.com
Subject: Re: [PATCH] net: eth: altera: fix napi poll_list corruption
Date: Thu, 03 Sep 2015 15:35:39 -0700 (PDT) [thread overview]
Message-ID: <20150903.153539.602528675900194363.davem@davemloft.net> (raw)
In-Reply-To: <20150903.150102.391475245.nemoto@toshiba-tops.co.jp>
From: Atsushi Nemoto <nemoto@toshiba-tops.co.jp>
Date: Thu, 3 Sep 2015 15:01:02 +0900
> On Wed, 2 Sep 2015 22:32:54 -0700, David Miller <davem@davemloft.net> wrote:
>>> I think napi_gro_flush() can be called with irq enabled, so moving the
>>> spin_lock_irqsave() just before the __napi_complete() (or moving the
>>> __napi_complete() just after the spin_lock_irqsave()) would be better,
>>> right?
>>
>> It should work, yes.
>
> Thank you. But I agree with Eric's last comment ("Calling
> napi_gro_flush() and __napi_complete() looks error prone."), and found
> that napi_complete_done() also checks NAPI_STATE_NPSVC to support
> NETPOLL. These checks looks somewhat redundant but I like simple way
> unless it is really critical to performance.
>
> So, please take original fix as is.
Fair enough, applied and queued up for -stable.
prev parent reply other threads:[~2015-09-03 22:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-02 8:49 [PATCH] net: eth: altera: fix napi poll_list corruption Atsushi Nemoto
2015-09-02 18:25 ` David Miller
2015-09-03 0:52 ` Atsushi Nemoto
2015-09-03 2:42 ` Eric Dumazet
2015-09-03 5:32 ` David Miller
2015-09-03 6:01 ` Atsushi Nemoto
2015-09-03 22:35 ` David Miller [this message]
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=20150903.153539.602528675900194363.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=eric.dumazet@gmail.com \
--cc=nemoto@toshiba-tops.co.jp \
--cc=netdev@vger.kernel.org \
--cc=vbridger@opensource.altera.com \
/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).