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

Russell King
2004-06-10T10:14:24Z

On Thu, Jun 10, 2004 at 01:46:23AM -0500, Dmitry Torokhov wrote:
> ChangeSet@1.1769, 2004-06-10 00:10:02-05:00, dtor_core@ameritech.net
> 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