summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsephe <sephe@FreeBSD.org>2016-09-23 04:53:47 +0000
committersephe <sephe@FreeBSD.org>2016-09-23 04:53:47 +0000
commit0f23d6e4a568f683af50a200e373049810c565ab (patch)
tree569ccabb07c9ebfcd6200a19ebaedbff6b795df4
parentd6f211b5350cc296f0dbbd0095deeb49acd01501 (diff)
downloadFreeBSD-src-0f23d6e4a568f683af50a200e373049810c565ab.zip
FreeBSD-src-0f23d6e4a568f683af50a200e373049810c565ab.tar.gz
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
-rw-r--r--sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c b/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
index 18626cb..e038cd4 100644
--- a/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
+++ b/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
@@ -751,7 +751,8 @@ hv_storvsc_io_request(struct hv_device *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;
OpenPOWER on IntegriCloud