svn commit: r306225 - stable/10/sys/dev/hyperv/storvsc
Sepherosa Ziehau
sephe at FreeBSD.org
Fri Sep 23 04:53:48 UTC 2016
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;
More information about the svn-src-all
mailing list