Re: [PATCH] Don't use a klist for drivers' set-of-devices

From: Alan Stern
Date: Thu Aug 11 2005 - 15:53:32 EST


On Thu, 11 Aug 2005, Dmitry Torokhov wrote:

> Hmm, so what do I do in the following scenario - I have a serio port
> (AUX) that has a synaptics touchpad bound to it which is driven by
> psmouse driver. psmouse driver registers a child port (synaptics
> pass-through) during probe call. The child port is also driven by
> psmouse module - but it looks like it will deadlock when binding.
>
> Am I missing something here?

I hate to say this, but you are right. Can you suggest a way around this
problem? Perhaps arranging things so that the devlist_mutex is held only
during the actual __device_bind_driver call and not during probe... But
there are so many tricky interactions and possible races that this
requires a lot of thought. I'll get back to you.

Alan Stern

-
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/