Re: [PATCH 1/2] Drivers: hv: vmbus: Wait for offers during boot

From: Naman Jain
Date: Thu Oct 24 2024 - 06:33:09 EST




On 10/22/2024 11:08 PM, Michael Kelley wrote:
From: Naman Jain <namjain@xxxxxxxxxxxxxxxxxxx> Sent: Tuesday, October 22, 2024 2:55 AM

On 10/21/2024 10:27 AM, Saurabh Singh Sengar wrote:
On Fri, Oct 18, 2024 at 04:58:10AM -0700, Naman Jain wrote:

[snip]


+ /* Wait for the host to send all offers. */
+ while (wait_for_completion_timeout(
+ &vmbus_connection.all_offers_delivered_event, msecs_to_jiffies(10 * 1000)) == 0) {

Nit: Can simply put 10000 instead of 10*1000

Noted.


If Easwar's patch can get "secs_to_jiffies()" added, that would be even better. :-)

Michael

Yes, that's true :)

Regards,
Naman