From: Stephen Hemminger <shemminger@osdl.org>
To: "David S. Miller" <davem@davemloft.net>
Cc: herbert@gondor.apana.org.au, patrakov@ums.usu.ru,
netdev@vger.kernel.org, akpm@osdl.org
Subject: Re: [PATCH] netdev: hotplug napi race cleanup
Date: Mon, 8 May 2006 09:54:58 -0700 [thread overview]
Message-ID: <20060508095458.0debd022@localhost.localdomain> (raw)
In-Reply-To: <20060506.180947.35317492.davem@davemloft.net>
On Sat, 06 May 2006 18:09:47 -0700 (PDT)
"David S. Miller" <davem@davemloft.net> wrote:
> From: Stephen Hemminger <shemminger@osdl.org>
> Date: Mon, 24 Apr 2006 15:23:41 -0700
>
> > This follows after the earlier two patches.
> >
> > Change the initialization of the class device portion of the net device
> > to be done earlier, so that any races before registration completes are
> > harmless. Add a mutex to avoid changes to netdevice during the
> > class device registration.
> >
> > Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
>
> I'm not going to apply this patch and instead request that we think
> about why this problem exists in the first place.
>
> This patch is even stronger evidence that doing the sysfs registry in
> the todo list processing is wrong. If you can legally do this while
> holding the rtnl semaphore, you can just as equally do it inside of
> register_netdevice() which is where it truly belongs.
>
> Then you can handle errors properly, unwind the state, and return the
> error to the caller instead of just losing the error and leaving the
> device in a half-registered state.
The issue is are there network devices that can't sleep during
register_netdevice?
next prev parent reply other threads:[~2006-05-08 16:55 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20060418042300.GA11061@kroah.com>
[not found] ` <20060418042345.GB11061@kroah.com>
[not found] ` <44448DFF.3080108@ums.usu.ru>
[not found] ` <20060418153951.GC30485@kroah.com>
[not found] ` <4445BB0F.6010305@ums.usu.ru>
2006-04-21 17:25 ` Hotplug race on name change Stephen Hemminger
2006-04-22 0:28 ` Herbert Xu
2006-04-24 22:23 ` [PATCH] netdev: hotplug napi race cleanup Stephen Hemminger
2006-04-25 1:30 ` Andrew Morton
2006-04-26 9:43 ` David S. Miller
2006-05-07 1:09 ` David S. Miller
2006-05-08 16:54 ` Stephen Hemminger [this message]
2006-05-08 18:37 ` David S. Miller
2006-05-08 19:02 ` Stephen Hemminger
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=20060508095458.0debd022@localhost.localdomain \
--to=shemminger@osdl.org \
--cc=akpm@osdl.org \
--cc=davem@davemloft.net \
--cc=herbert@gondor.apana.org.au \
--cc=netdev@vger.kernel.org \
--cc=patrakov@ums.usu.ru \
/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).