OSDN Git Service

scsi: storvsc: Handle SRB status value 0x30
authorMichael Kelley <mikelley@microsoft.com>
Sat, 8 Jul 2023 04:01:26 +0000 (21:01 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 11 Jul 2023 16:38:49 +0000 (12:38 -0400)
commitf4d1a8e011909fee24643f84bd1196e1366c26f2
tree93ddfc77a27d24aaa6db39cd4676b96a8793aaad
parente96277a570cda96f1363a051b6a1a321f2ec2d35
scsi: storvsc: Handle SRB status value 0x30

In response to a disk I/O request, Hyper-V has been observed to return SRB
status value 0x30.  This indicates the request was not processed by Hyper-V
because low memory conditions on the host caused an internal error.  The
0x30 status is not recognized by storvsc, so the I/O operation is not
flagged as an error. The request is treated as if it completed normally but
with zero data transferred, causing a flood of retries.

Add a definition for this SRB status value and handle it like other error
statuses from the Hyper-V host.

Signed-off-by: Michael Kelley <mikelley@microsoft.com>
Link: https://lore.kernel.org/r/1688788886-94279-1-git-send-email-mikelley@microsoft.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/storvsc_drv.c