svn commit: r306015 - head/sys/dev/hyperv/storvsc

Sepherosa Ziehau sephe at FreeBSD.org
Tue Sep 20 08:52:46 UTC 2016


Author: sephe
Date: Tue Sep 20 08:52:45 2016
New Revision: 306015
URL: https://svnweb.freebsd.org/changeset/base/306015

Log:
  hyperv/storvsc: Fix SRB length setting.
  
  This fixes disk discovery issue on WS2008R2 Hyper-V, which plagued
  us since 10.2-release.
  
  Reported by:	many
  MFC after:	3 days
  Sponsored by:	Microsoft

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 Sep 20 05:45:18 2016	(r306014)
+++ head/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c	Tue Sep 20 08:52:45 2016	(r306015)
@@ -705,7 +705,8 @@ hv_storvsc_io_request(struct storvsc_sof
 
 	vstor_packet->flags |= REQUEST_COMPLETION_FLAG;
 
-	vstor_packet->u.vm_srb.length = VSTOR_PKT_SIZE;
+	vstor_packet->u.vm_srb.length =
+	    sizeof(struct vmscsi_req) - vmscsi_size_delta;
 	
 	vstor_packet->u.vm_srb.sense_info_len = sense_buffer_size;
 


More information about the svn-src-head mailing list