From: Andrew Morton <akpm@linux-foundation.org>
To: Jarek Poplawski <jarkao2@gmail.com>
Cc: davem@davemloft.net, shemminger@linux-foundation.org,
netdev@vger.kernel.org, rjw@sisk.pl
Subject: Re: [PATCH] Re: netconsole still hangs
Date: Mon, 17 Mar 2008 16:12:22 -0700 [thread overview]
Message-ID: <20080317161222.0fb9dfc9.akpm@linux-foundation.org> (raw)
In-Reply-To: <20080314234749.GA10606@ami.dom.local>
On Sat, 15 Mar 2008 00:47:49 +0100
Jarek Poplawski <jarkao2@gmail.com> wrote:
> [NETPOLL] zap_completion_queue: adjust skb->users counter
>
> zap_completion_queue() retrieves skbs from completion_queue where they
> have zero skb->users counter. Before dev_kfree_skb_any() it should be
> non-zero yet, so it's increased now.
>
>
> Reported-and-tested-by: Andrew Morton <akpm@linux-foundation.org>
> Signed-off-by: Jarek Poplawski <jarkao2@gmail.com>
>
> (not tested)
> ---
>
> net/core/netpoll.c | 6 ++++--
> 1 files changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/net/core/netpoll.c b/net/core/netpoll.c
> index d0c8bf5..b04d643 100644
> --- a/net/core/netpoll.c
> +++ b/net/core/netpoll.c
> @@ -215,10 +215,12 @@ static void zap_completion_queue(void)
> while (clist != NULL) {
> struct sk_buff *skb = clist;
> clist = clist->next;
> - if (skb->destructor)
> + if (skb->destructor) {
> + atomic_inc(&skb->users);
> dev_kfree_skb_any(skb); /* put this one back */
> - else
> + } else {
> __kfree_skb(skb);
> + }
> }
> }
I retested. This patch doesn't appear to make anything worse, but the hang
is still there.
next prev parent reply other threads:[~2008-03-17 23:13 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-12 23:14 netconsole still hangs Andrew Morton
2008-03-12 23:16 ` Andrew Morton
2008-03-12 23:30 ` Andrew Morton
2008-03-12 23:57 ` Andrew Morton
2008-03-13 6:10 ` David Miller
2008-03-13 6:52 ` Andrew Morton
2008-03-13 7:12 ` David Miller
2008-03-13 7:25 ` Andrew Morton
2008-03-13 7:48 ` Jike Song
2008-03-14 23:47 ` [PATCH] " Jarek Poplawski
2008-03-17 23:12 ` Andrew Morton [this message]
2008-03-18 8:04 ` Jarek Poplawski
2008-03-18 8:50 ` [Bug 10238] " Andrew Morton
2008-03-18 21:05 ` Jarek Poplawski
2008-03-18 21:47 ` Andrew Morton
2008-03-18 22:47 ` Jarek Poplawski
2008-03-19 19:17 ` Jarek Poplawski
2008-03-19 21:20 ` Andrew Morton
2008-03-19 21:31 ` David Miller
2008-03-19 21:54 ` Jarek Poplawski
2008-03-20 23:08 ` David Miller
2008-03-13 7:59 ` Andrew Morton
2008-03-13 15:09 ` Stephen Hemminger
2008-03-13 15:52 ` Andrew Morton
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=20080317161222.0fb9dfc9.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=davem@davemloft.net \
--cc=jarkao2@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=rjw@sisk.pl \
--cc=shemminger@linux-foundation.org \
/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).