Author: sephe
Date: Fri Sep 23 04:53:47 2016
New Revision: 306225
URL: https://svnweb.freebsd.org/changeset/base/306225

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/10/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
==============================================================================
--- stable/10/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c   Fri Sep 23 
04:45:11 2016        (r306224)
+++ stable/10/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c   Fri Sep 23 
04:53:47 2016        (r306225)
@@ -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;
 
_______________________________________________
svn-src-stable-10@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"

Reply via email to