mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
This commit is contained in:
parent
5260781e82
commit
fa8c981396
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue