Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Apr 2016 05:00:40 +0000 (UTC)
From:      Sepherosa Ziehau <sephe@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r298614 - head/sys/dev/hyperv/storvsc
Message-ID:  <201604260500.u3Q50eiV051828@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sephe
Date: Tue Apr 26 05:00:40 2016
New Revision: 298614
URL: https://svnweb.freebsd.org/changeset/base/298614

Log:
  hyperv/stor: Synchronize sub-channel offers
  
  MFC after:	1 week
  Sponsored by:	Microsoft OSTC

Modified:
  head/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c

Modified: head/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
==============================================================================
--- head/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c	Tue Apr 26 04:48:57 2016	(r298613)
+++ head/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c	Tue Apr 26 05:00:40 2016	(r298614)
@@ -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
 		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");
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604260500.u3Q50eiV051828>