Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Sep 2016 08:52:45 +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: r306015 - head/sys/dev/hyperv/storvsc
Message-ID:  <201609200852.u8K8qjAU014965@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 



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