diff options
| author | Long Li <longli@microsoft.com> | 2016-12-14 18:46:03 -0800 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-07-04 11:51:15 +0200 |
| commit | ad20e0987983ff6f8f71d4518954b5ea403d66f4 (patch) | |
| tree | 29c5e2c632e6e25a2501850ca6c36b0b453ad550 /drivers/target | |
| parent | aef1b1107473aacf7bdee7472b92e78421211f37 (diff) | |
scsi: storvsc: properly set residual data length on errors
commit 40630f462824ee24bc00d692865c86c3828094e0 upstream.
On I/O errors, the Windows driver doesn't set data_transfer_length
on error conditions other than SRB_STATUS_DATA_OVERRUN.
In these cases we need to set data_transfer_length to 0,
indicating there is no data transferred. On SRB_STATUS_DATA_OVERRUN,
data_transfer_length is set by the Windows driver to the actual data transferred.
Reported-by: Shiva Krishna <Shiva.Krishna@nimblestorage.com>
Signed-off-by: Long Li <longli@microsoft.com>
Reviewed-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'drivers/target')
0 files changed, 0 insertions, 0 deletions
