svn commit: r306223 - stable/11/sys/dev/hyperv/storvsc

Sepherosa Ziehau sephe at FreeBSD.org
Fri Sep 23 03:21:41 UTC 2016


Author: sephe
Date: Fri Sep 23 03:21:40 2016
New Revision: 306223
URL: https://svnweb.freebsd.org/changeset/base/306223

Log:
  MFC 306015
  
      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
      Sponsored by:   Microsoft

Modified:
  stable/11/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
==============================================================================
--- stable/11/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c	Fri Sep 23 01:52:06 2016	(r306222)
+++ stable/11/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c	Fri Sep 23 03:21:40 2016	(r306223)
@@ -751,7 +751,8 @@ hv_storvsc_io_request(struct hv_device *
 
 	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-stable mailing list