hyperv/stor: Synchronize sub-channel offers

MFC after:	1 week
Sponsored by:	Microsoft OSTC
This commit is contained in:
sephe 2016-04-26 05:00:40 +00:00
parent f3d0188e03
commit 35bcf1a137

View File

@ -357,6 +357,7 @@ storvsc_handle_sc_creation(void *context)
static void
storvsc_send_multichannel_request(struct hv_device *dev, int max_chans)
{
struct hv_vmbus_channel **subchan;
struct storvsc_softc *sc;
struct hv_storvsc_request *request;
struct vstor_packet *vstor_packet;
@ -413,6 +414,12 @@ storvsc_send_multichannel_request(struct hv_device *dev, int max_chans)
return;
}
/*
* Wait for sub-channels setup to complete.
*/
subchan = vmbus_get_subchan(dev->channel, request_channels_cnt);
vmbus_rel_subchan(subchan, request_channels_cnt);
if (bootverbose)
printf("Storvsc create multi-channel success!\n");
}