Re: [RFC v2 2/6] driver-core: add driver async_probe support

2014-10-20 Thread Luis R. Rodriguez
> diff --git a/drivers/base/bus.c b/drivers/base/bus.c > index 83e910a..49fe573 100644 > --- a/drivers/base/bus.c > +++ b/drivers/base/bus.c > @@ -10,6 +10,7 @@ > * > */ > > +#include > #include > #include > #include > @@ -547,15 +548,12 @@ void bus_probe_device(struct device *dev) > {

Re: [RFC v2 2/6] driver-core: add driver async_probe support

2014-09-05 Thread Dmitry Torokhov
Hi Luis, On Thu, Sep 04, 2014 at 11:37:23PM -0700, Luis R. Rodriguez wrote: > 1) when a built-in driver takes a few seconds to initialize its >delays can stall the overall boot process This patch does not solve the 2nd issue fully as it only calls probe asynchronously during driver registrati

Re: [RFC v2 2/6] driver-core: add driver async_probe support

2014-09-05 Thread Luis R. Rodriguez
On Fri, Sep 05, 2014 at 01:24:17PM +0200, Oleg Nesterov wrote: > On 09/04, Luis R. Rodriguez wrote: > > > > struct driver_private { > > struct kobject kobj; > > struct klist klist_devices; > > struct klist_node knode_bus; > > struct module_kobject *mkobj; > > + struct driver_atta

Re: [RFC v2 2/6] driver-core: add driver async_probe support

2014-09-05 Thread Oleg Nesterov
On 09/04, Luis R. Rodriguez wrote: > > struct driver_private { > struct kobject kobj; > struct klist klist_devices; > struct klist_node knode_bus; > struct module_kobject *mkobj; > + struct driver_attach_work *attach_work; > struct device_driver *driver; I am not

[RFC v2 2/6] driver-core: add driver async_probe support

2014-09-04 Thread Luis R. Rodriguez
From: "Luis R. Rodriguez" We now have two documented use cases for probing asynchronously: 0) since we bundle together driver init() and probe() systemd's new 30 second timeout has put a limit on the amount of time a driver probe routine can take, we need to enable drivers to complete p