From: David Brownell <david-b@pacbell.net>
To: linux-usb-devel@lists.sourceforge.net,
lkml <linux-kernel@vger.kernel.org>,
Andrew Morton <andrewm@uow.edu.au>
Cc: Linus Torvalds <torvalds@transmeta.com>,
David Woodhouse <dwmw2@infradead.org>
Subject: Re: [linux-usb-devel] [patch] hotplug fixes
Date: Sun, 10 Dec 2000 18:21:45 +0000 [thread overview]
Message-ID: <02ad01c062d6$408ed600$6600000a@brownell.org> (raw)
In-Reply-To: <3A337727.FDED61E3@uow.edu.au>
> - We have been getting deadlocks at hotplug time because
> call_usermodehelper is synchronous: it returns control after the
> usermode application has exited. But in some places (esp.
> [un]register_netdevice) this happens with a lock held (rtnl_lock).
> This cause `ifconfig' to get stuck.
The /sbin/hotplug script I sent around last week avoids this by doing
its work in the background.
I see the underlying problem here as being that network hotplug hooks
are called at the wrong time ... because they are piggybacking onto
existing APIs, which weren't designed for hotplug support. Different
aspects of that root cause were all over your list of problems (seeming
to trigger all the nastiest ones :-).
To my way of thought (I don't claim expertise in Linux networking!)
the _clean_ fix here is accept that the network driver API needs an
update for hotplugging. Not a big one, I suspect. Likely we can
start with a "ready to open this device!" call, which hotplug-ready
network drivers call at the end of their PCI or USB probe routines.
We've needed such changes in both PCI and USB driver APIs ... suggesting
that such changes are to be expected as new subsystems start to learn
how to autoconfigure themselves.
> - Add a check for an empty executable path string in
> call_usermodehelper. (This check can probably be removed from the
> USB code now?)
Sure.
- Dave
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
prev parent reply other threads:[~2000-12-11 2:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-12-10 12:29 [patch] hotplug fixes Andrew Morton
2000-12-10 12:44 ` David Woodhouse
2000-12-10 13:14 ` Andrew Morton
2000-12-10 16:47 ` Linus Torvalds
2000-12-10 17:01 ` David Woodhouse
2000-12-10 18:21 ` David Brownell [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='02ad01c062d6$408ed600$6600000a@brownell.org' \
--to=david-b@pacbell.net \
--cc=andrewm@uow.edu.au \
--cc=dwmw2@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb-devel@lists.sourceforge.net \
--cc=torvalds@transmeta.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