Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Michael Kelley and committed by
Martin K. Petersen
f4d1a8e0 e96277a5

+2
+2
drivers/scsi/storvsc_drv.c
··· 318 318 #define SRB_STATUS_INVALID_REQUEST 0x06 319 319 #define SRB_STATUS_DATA_OVERRUN 0x12 320 320 #define SRB_STATUS_INVALID_LUN 0x20 321 + #define SRB_STATUS_INTERNAL_ERROR 0x30 321 322 322 323 #define SRB_STATUS(status) \ 323 324 (status & ~(SRB_STATUS_AUTOSENSE_VALID | SRB_STATUS_QUEUE_FROZEN)) ··· 979 978 case SRB_STATUS_ERROR: 980 979 case SRB_STATUS_ABORTED: 981 980 case SRB_STATUS_INVALID_REQUEST: 981 + case SRB_STATUS_INTERNAL_ERROR: 982 982 if (vm_srb->srb_status & SRB_STATUS_AUTOSENSE_VALID) { 983 983 /* Check for capacity change */ 984 984 if ((asc == 0x2a) && (ascq == 0x9)) {