Re: [PATCH 4/3] Allow registering device without taking bus lock

From: Russell King
Date: Thu Jun 10 2004 - 05:15:22 EST


On Thu, Jun 10, 2004 at 01:46:23AM -0500, Dmitry Torokhov wrote:
> ChangeSet@xxxxxx, 2004-06-10 00:10:02-05:00, dtor_core@xxxxxxxxxxxxx
> sysfs: provide means for adding and removing devices to a bus without
> taking bus' semaphore so devices can be added/removed from
> driver's probe() and remove() methods.

Eww. Why can't you do the same as PCMCIA and register/remove in a
separate thread?

Really though, lets not introduce this hacky solution, but come up
with a way to do it cleanly so PCMCIA doesn't have this problem
either.

--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of: 2.6 PCMCIA - http://pcmcia.arm.linux.org.uk/
2.6 Serial core
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/