Skip to content

Commit

Permalink
Drivers: hv: vmbus: Don't wait after requesting offers
Browse files Browse the repository at this point in the history
Don't wait after sending request for offers to the host. This wait is
unnecessary and simply adds 5 seconds to the boot time.

Signed-off-by: K. Y. Srinivasan <[email protected]>
Cc: <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
kattisrinivasan authored and gregkh committed Mar 26, 2015
1 parent 160b7da commit 73cffdb
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions drivers/hv/channel_mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -884,16 +884,13 @@ int vmbus_request_offers(void)
struct vmbus_channel_message_header *msg;
struct vmbus_channel_msginfo *msginfo;
int ret;
unsigned long t;

msginfo = kmalloc(sizeof(*msginfo) +
sizeof(struct vmbus_channel_message_header),
GFP_KERNEL);
if (!msginfo)
return -ENOMEM;

init_completion(&msginfo->waitevent);

msg = (struct vmbus_channel_message_header *)msginfo->msg;

msg->msgtype = CHANNELMSG_REQUESTOFFERS;
Expand All @@ -907,14 +904,6 @@ int vmbus_request_offers(void)
goto cleanup;
}

t = wait_for_completion_timeout(&msginfo->waitevent, 5*HZ);
if (t == 0) {
ret = -ETIMEDOUT;
goto cleanup;
}



cleanup:
kfree(msginfo);

Expand Down

0 comments on commit 73cffdb

Please sign in to comment.