Re: [PATCH v3] driver core: Don't set a deferred probe timeout if modules are disabled

From: Greg Kroah-Hartman
Date: Thu Mar 07 2024 - 16:39:44 EST


On Wed, Feb 28, 2024 at 12:09:02AM +0100, Javier Martinez Canillas wrote:
> There is no point to schedule the workqueue to timeout the deferred probe,
> if all the initcalls are done and modules are not enabled. The default for
> this case is already 0 but can be overridden by the deferred_probe_timeout
> parameter. Let's just skip this and avoid queuing work that is not needed.

As the option is already there to set the timeout to 0, why confuse
things by trying to tie this to if modules are enabled or not? And even
if you do want to do that, where did you now document this new system
behavior?

thanks,

greg k-h