From: Matt Mackall <mpm@selenic.com>
To: Jeff Moyer <jmoyer@redhat.com>
Cc: linux-kernel@vger.kernel.org, Stelian Pop <stelian@popies.net>
Subject: Re: [patch] fix netconsole hang with alt-sysrq-t
Date: Fri, 6 Aug 2004 15:26:49 -0500 [thread overview]
Message-ID: <20040806202649.GE16310@waste.org> (raw)
In-Reply-To: <16659.58271.979999.616045@segfault.boston.redhat.com>
On Fri, Aug 06, 2004 at 04:01:35PM -0400, Jeff Moyer wrote:
> ==> Regarding Re: [patch] fix netconsole hang with alt-sysrq-t; Matt Mackall <mpm@selenic.com> adds:
>
> mpm> On Fri, Aug 06, 2004 at 03:29:27PM -0400, Jeff Moyer wrote:
> >> Hi, Matt,
> >>
> >> Here's the patch. Sorry it took me so long, been busy with other work.
> >> Two things which need perhaps more thinking, can netpoll_poll be called
> >> recursively (it didn't look like it to me)
>
> mpm> It can if the poll function does a printk or the like and wants to
> mpm> recurse via netconsole. We could short-circuit that with an in_netpoll
> mpm> flag, but let's worry about that separately.
>
> Hmm, ok.
>
> >> and do we care about the racy
> >> nature of the netpoll_set_trap interface?
>
> mpm> That should probably become an atomic now.
>
> Ouch. I wanted to avoid that, but if we can't, we can't. Will
> netpoll_set_trap then to an atomic_inc or an atomic_add? I've only seen it
> called with 1 and 0, is that all that was intended?
It's a boolean interface. We might switch from set(bool) to
enable()/disable(). More thought required.
> >> You'll notice that I reverted part of an earlier changeset which caused us
> >> to call the hard_start_xmit function even if netif_queue_stopped returned
> >> true. This is a bug. I preserved the second part of that patch, which was
> >> correct.
>
> mpm> Ok, jgarzik pointed that out to me just a bit ago. I'm not sure if
> mpm> we're dealing with the behavior that was intended to address yet
> mpm> though. Stelian, can you try giving this a spin?
>
> Well, we kept the second part of the patch, which deals with the
> hard_start_xmit routine returning 1. That was a valid bug, I believe.
Probably, but it's hairy enough that I'm not entirely convinced we've
solved the particular problem.
> Yah, and I just noticed we don't want the poll_lock to be per struct
> netpoll. It should be a static lock in the netpoll.c file. The problem is
> that more than one netpoll object can reference the same ethernet device.
Good catch. My original design stuck pointers to the netpoll objects
in the net device and then I switched to allowing multiples and didn't
fix that bit.
--
Mathematics is the supreme nostalgia of our time.
next prev parent reply other threads:[~2004-08-06 20:39 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-06 19:29 Jeff Moyer
2004-08-06 19:52 ` Matt Mackall
2004-08-06 20:01 ` Jeff Moyer
2004-08-06 20:26 ` Matt Mackall [this message]
2004-08-12 21:01 ` Jeff Moyer
2004-08-12 21:18 ` Muli Ben-Yehuda
2004-08-12 21:32 ` Jeff Moyer
2004-08-12 21:39 ` Muli Ben-Yehuda
2004-08-13 0:21 ` Matt Mackall
2004-08-13 0:29 ` Matt Mackall
2004-08-16 18:41 ` Jeff Moyer
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=20040806202649.GE16310@waste.org \
--to=mpm@selenic.com \
--cc=jmoyer@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=stelian@popies.net \
/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
all inboxes | Powered by JetHome®