From: Andrew Morton <akpm@linux-foundation.org>
To: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Jason Wessel <jason.wessel@windriver.com>,
Stephen Hemminger <shemminger@linux-foundation.org>,
"David S. Miller" <davem@davemloft.net>,
linux-kernel@vger.kernel.org
Subject: Re: + fix-soft-lockup-when-removing-netconsole-module.patch added to -mm tree
Date: Wed, 30 May 2007 14:51:23 -0700 [thread overview]
Message-ID: <20070530145123.fe5cb196.akpm@linux-foundation.org> (raw)
In-Reply-To: <20070530210137.GA225@tv-sign.ru>
On Thu, 31 May 2007 01:01:37 +0400
Oleg Nesterov <oleg@tv-sign.ru> wrote:
> Jason Wessel wrote:
> >
> > The netpoll_cleanup handler can hang the kernel if there is no work in the
> > work queue because a call to cancel_rearming_delayed_work() with no work
> > goes into an infinite loop.
>
> This should not be true any longer, cancel_rearming_delayed_work() should work
> correctly in any case.
>
> Could you please clarify?
We need a 2.6.21.x fix.
> > @@ -771,30 +771,32 @@ void netpoll_cleanup(struct netpoll *np)
> >
> > [...snip...]
> >
> > + if (atomic_dec_and_test(&npinfo->refcnt)) {
> > + skb_queue_purge(&npinfo->arp_tx);
> > + skb_queue_purge(&npinfo->txq);
> > + if (delayed_work_pending(&npinfo->tx_work)) {
> > cancel_rearming_delayed_work(&npinfo->tx_work);
> > flush_scheduled_work();
>
> But this "if (delayed_work_pending())" is racy anyway?
>
I guess so, a bit.
next prev parent reply other threads:[~2007-05-30 21:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-30 21:01 + fix-soft-lockup-when-removing-netconsole-module.patch added to -mm tree Oleg Nesterov
2007-05-30 21:51 ` Andrew Morton [this message]
2007-05-30 22:27 ` Oleg Nesterov
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=20070530145123.fe5cb196.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=davem@davemloft.net \
--cc=jason.wessel@windriver.com \
--cc=linux-kernel@vger.kernel.org \
--cc=oleg@tv-sign.ru \
--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