Re: post 2.6.28 regression: device_initialize() now sleeps, andmay fail without recovery strategy

From: Greg KH
Date: Fri Jan 09 2009 - 16:36:02 EST


On Fri, Jan 09, 2009 at 10:20:25PM +0100, Stefan Richter wrote:
> Stefan Richter wrote:
> > Greg KH wrote:
> >> I originally looked at changing this to be at device_add time, but I
> >> think there are some code paths that do device_initialize and then do
> >> some operations on the device before calling device_add.
> >
> > get_device() and put_device() seem to be about the only things that are
> > interesting before device_add().
> >
> > Don't know if a final put_device() in this situation
>
> ...would require dev->p to be present.

But that can be easily handled...

give me a short while to test...

thanks,

greg k-h
--
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/