Re: [PATCH 5.17 127/298] driver core: Fix wait_for_device_probe() & deferred_probe_timeout interaction

From: Mark Brown
Date: Mon Aug 21 2023 - 09:11:45 EST


On Mon, Aug 21, 2023 at 01:39:11PM +0100, Robin Murphy wrote:
> On 2023-08-21 12:35, Shreeya Patel wrote:

> > AFAIK, script for running the tests is immediately ran after the boot
> > process is complete so there is no wait time.

> Regardless of what the kernel is doing, it seems like a fundamentally dumb
> test to specifically ask deferred probe to wait for up to a minute then
> complain that it hasn't finished after 11 seconds :/

IIRC that stuff is expecting the modules to be loaded from the initramfs
and checking from the main system which is a bit more sensible (at least
in the case where there is a main filesystem). It's vulnerable to races
but less so, especially given the time a Debian rootfs typically takes
to boot over NFS.

Attachment: signature.asc
Description: PGP signature