[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <d82e647a0901290746r6dadd5c0v6091e9d2b8175596@mail.gmail.com>
Date: Thu, 29 Jan 2009 23:46:13 +0800
From: Ming Lei <tom.leiming@...il.com>
To: Arjan van de Ven <arjan@...radead.org>
Cc: kay.sievers@...y.org, greg@...ah.com, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] driver core: remove polling for driver_probe_done
2009/1/29 Arjan van de Ven <arjan@...radead.org>:
>> @@ -396,9 +396,9 @@ void __init prepare_namespace(void)
>> if ((ROOT_DEV == 0) && root_wait) {
>> printk(KERN_INFO "Waiting for root device %s...\n",
>> saved_root_name);
>> - while (driver_probe_done() != 0 ||
>> - (ROOT_DEV = name_to_dev_t(saved_root_name))
>> == 0)
>> - msleep(100);
>> + ROOT_DEV = name_to_dev_t(saved_root_name);
>> + if (ROOT_DEV)
>> + driver_probe_wait_done();
>> }
>>
>
> Hi,
>
> another comment:
>
> this is not equivalent
>
> you turned "wait until all probing is done OR until the device exists"
> into "wait until all probing is done"... which might be several seconds
> longer!
Yes, you are right. I will consider how to fix the problem.
Thanks.
>
--
Lei Ming
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists