diff options
author | Sepherosa Ziehau <sephe@FreeBSD.org> | 2016-09-20 08:52:45 +0000 |
---|---|---|
committer | Sepherosa Ziehau <sephe@FreeBSD.org> | 2016-09-20 08:52:45 +0000 |
commit | fa8c981396ab6224bb2cd2aae12d2906dbaccfb8 (patch) | |
tree | 2d0d31295acc3d009093b7f6c6ac84ca623d9bfb | |
parent | 5260781e826a3878960fe3ccbcd6db49504e0a47 (diff) | |
download | src-fa8c981396ab6224bb2cd2aae12d2906dbaccfb8.tar.gz src-fa8c981396ab6224bb2cd2aae12d2906dbaccfb8.zip |
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
Notes
Notes:
svn path=/head/; revision=306015
-rw-r--r-- | sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c | 3 |
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 530a2d909cac..e1b2fdf9f3db 100644 --- a/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c +++ b/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c @@ -705,7 +705,8 @@ hv_storvsc_io_request(struct storvsc_softc *sc, 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; |